class TwigNodeVisitor extends Twig_BaseNodeVisitor (View source)

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) }}.

Methods

doEnterNode(Twig_Node $node, Twig_Environment $env)

{@inheritdoc}

doLeaveNode(Twig_Node $node, Twig_Environment $env)

{@inheritdoc}

getPriority()

{@inheritdoc}

Details

protected doEnterNode(Twig_Node $node, Twig_Environment $env)

{@inheritdoc}

Parameters

Twig_Node $node
Twig_Environment $env

protected doLeaveNode(Twig_Node $node, Twig_Environment $env)

{@inheritdoc}

Parameters

Twig_Node $node
Twig_Environment $env

getPriority()

{@inheritdoc}