public function Twig_NodeVisitorInterface::leaveNode

Called after child nodes are visited.

Parameters

Twig_NodeInterface $node The node to visit:

Twig_Environment $env The Twig environment instance:

Return value

Twig_NodeInterface|false The modified node or false if the node must be removed

6 methods override Twig_NodeVisitorInterface::leaveNode()
CExtDisablingNodeVisitor::leaveNode in drupal/core/vendor/twig/twig/test/Twig/Tests/TemplateTest.php
Called after child nodes are visited.
Twig_NodeVisitor_Escaper::leaveNode in drupal/core/vendor/twig/twig/lib/Twig/NodeVisitor/Escaper.php
Called after child nodes are visited.
Twig_NodeVisitor_Optimizer::leaveNode in drupal/core/vendor/twig/twig/lib/Twig/NodeVisitor/Optimizer.php
Called after child nodes are visited.
Twig_NodeVisitor_SafeAnalysis::leaveNode in drupal/core/vendor/twig/twig/lib/Twig/NodeVisitor/SafeAnalysis.php
Called after child nodes are visited.
Twig_NodeVisitor_Sandbox::leaveNode in drupal/core/vendor/twig/twig/lib/Twig/NodeVisitor/Sandbox.php
Called after child nodes are visited.

... See full list

File

drupal/core/vendor/twig/twig/lib/Twig/NodeVisitorInterface.php, line 37

Class

Twig_NodeVisitorInterface
Twig_NodeVisitorInterface is the interface the all node visitor classes must implement.

Code

public function leaveNode(Twig_NodeInterface $node, Twig_Environment $env);