You are here

public function Twig_NodeVisitorInterface::enterNode in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/NodeVisitorInterface.php \Twig_NodeVisitorInterface::enterNode()

Called before child nodes are visited.

Parameters

Twig_NodeInterface $node The node to visit:

Twig_Environment $env The Twig environment instance:

Return value

Twig_NodeInterface The modified node

3 methods override Twig_NodeVisitorInterface::enterNode()
CExtDisablingNodeVisitor::enterNode in vendor/twig/twig/test/Twig/Tests/TemplateTest.php
Called before child nodes are visited.
Twig_BaseNodeVisitor::enterNode in vendor/twig/twig/lib/Twig/BaseNodeVisitor.php
Called before child nodes are visited.
Twig_Tests_EnvironmentTest_NodeVisitor::enterNode in vendor/twig/twig/test/Twig/Tests/EnvironmentTest.php
Called before child nodes are visited.

File

vendor/twig/twig/lib/Twig/NodeVisitorInterface.php, line 27

Class

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

Code

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