yiisoft/yii2-twig API Documentation 2.5

This is the API Documentation for the yiisoft/yii2-twig extension. Here you will find detailed information about all classes provided by this extension. Below you find a list of the existing classes, interfaces, and traits, ordered by their fully qualified name (including the namespace). Each of them has a dedicated page which contains a description about the purpose of the class, a list of the available methods, properties and constants, and detailed description on how to use each of them.

On this page you find all the classes included in version 2.5 of the extension. You can use the dropdown menu on the top right to switch between versions.

Class Description
yii\twig\Extension Extension provides Yii-specific syntax for Twig templates.
yii\twig\GetAttr
yii\twig\GetAttrAdjuster GetAttrAdjuster swaps Twig_Node_Expression_GetAttr nodes with yii\twig\GetAttr nodes.
yii\twig\Optimizer Optimizer removes echo before special functions call and injects function name as an argument for the view helper calls.
yii\twig\Profile
yii\twig\Template Template helper
yii\twig\TwigEmptyLoader Empty loader used for environment initialisation
yii\twig\ViewRenderer TwigViewRenderer allows you to use Twig templates in views.
yii\twig\ViewRendererStaticClassProxy Class-proxy for static classes Needed because you can't pass static class to Twig other way
yii\twig\html\BaseClassNode
yii\twig\html\BaseCss_TokenParser
yii\twig\html\CssClassNode
yii\twig\html\CssClass_TokenParser
yii\twig\html\CssStyle_TokenParser
yii\twig\html\HtmlHelperExtension
yii\twig\html\StyleClassNode