class TwigNodeVisitor extends AbstractNodeVisitor (View source)

Provides a TwigNodeVisitor 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(Node $node, Environment $env)

{@inheritdoc}

doLeaveNode(Node $node, Environment $env)

{@inheritdoc}

getPriority()

{@inheritdoc}

Details

protected doEnterNode(Node $node, Environment $env)

{@inheritdoc}

Parameters

Node $node
Environment $env

protected doLeaveNode(Node $node, Environment $env)

{@inheritdoc}

Parameters

Node $node
Environment $env

getPriority()

{@inheritdoc}