W3cubDocs

/Drupal 8

protected function TwigNodeVisitor::doEnterNode

protected TwigNodeVisitor::doEnterNode(\Twig_Node $node, \Twig_Environment $env)

Called before child nodes are visited.

Parameters

Twig_Node $node The node to visit:

Twig_Environment $env The Twig environment instance:

Return value

Twig_Node The modified node

Overrides Twig_BaseNodeVisitor::doEnterNode

File

core/lib/Drupal/Core/Template/TwigNodeVisitor.php, line 19

Class

TwigNodeVisitor
Provides a Twig_NodeVisitor to change the generated parse-tree.

Namespace

Drupal\Core\Template

Code

protected function doEnterNode(\Twig_Node $node, \Twig_Environment $env) {
  return $node;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Template!TwigNodeVisitor.php/function/TwigNodeVisitor::doEnterNode/8.1.x