function TestNodeVisitor::enterNode

Same name and namespace in other branches
  1. 10 core/modules/system/tests/modules/sdc_other_node_visitor/src/Twig/NodeVisitor/TestNodeVisitor.php \Drupal\sdc_other_node_visitor\Twig\NodeVisitor\TestNodeVisitor::enterNode()
  2. main core/modules/system/tests/modules/sdc_other_node_visitor/src/Twig/NodeVisitor/TestNodeVisitor.php \Drupal\sdc_other_node_visitor\Twig\NodeVisitor\TestNodeVisitor::enterNode()

File

core/modules/system/tests/modules/sdc_other_node_visitor/src/Twig/NodeVisitor/TestNodeVisitor.php, line 47

Class

TestNodeVisitor
A node visitor that adds nodes to the Twig template.

Namespace

Drupal\sdc_other_node_visitor\Twig\NodeVisitor

Code

public function enterNode(Node $node, Environment $env) : Node {
  return $node;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.