Provides a Twig_NodeVisitor to change the generated parse-tree.
This is used to ensure that everything printed is wrapped via the TwigExtension->renderVar() function in order to just write {{ content }} in templates instead of having to write {{ render_var(content) }}.
twig_render
Name | Modifiers | Type | Description |
---|---|---|---|
TwigNodeVisitor::doEnterNode | protected | function | Called before child nodes are visited. Overrides Twig_BaseNodeVisitor::doEnterNode |
TwigNodeVisitor::doLeaveNode | protected | function | Called after child nodes are visited. Overrides Twig_BaseNodeVisitor::doLeaveNode |
TwigNodeVisitor::getPriority | public | function | |
Twig_BaseNodeVisitor::enterNode | final public | function | |
Twig_BaseNodeVisitor::leaveNode | final public | function |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Template!TwigNodeVisitor.php/class/TwigNodeVisitor/8.1.x