Provides a Twig_NodeVisitor to change the generated parse-tree.
This is used to ensure that everything that is printed is wrapped via twig_render() function so that we can write for example just {{ content }} in templates instead of having to write {{ render(content) }}.
Expanded class hierarchy of TwigNodeVisitor
twig_render
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TwigNodeVisitor:: |
protected | property | TRUE when this node is a function getting arguments by reference. | |
TwigNodeVisitor:: |
function | Implements Twig_NodeVisitorInterface::enterNode(). | ||
TwigNodeVisitor:: |
function | Implements Twig_NodeVisitorInterface::getPriority(). | ||
TwigNodeVisitor:: |
function | Implements Twig_NodeVisitorInterface::leaveNode(). |