class CExtDisablingNodeVisitor

Hierarchy

Expanded class hierarchy of CExtDisablingNodeVisitor

File

drupal/core/vendor/twig/twig/test/Twig/Tests/TemplateTest.php, line 536

View source
class CExtDisablingNodeVisitor implements Twig_NodeVisitorInterface {
  public function enterNode(Twig_NodeInterface $node, Twig_Environment $env) {
    if ($node instanceof Twig_Node_Expression_GetAttr) {
      $node
        ->setAttribute('disable_c_ext', true);
    }
    return $node;
  }
  public function leaveNode(Twig_NodeInterface $node, Twig_Environment $env) {
    return $node;
  }
  public function getPriority() {
    return 0;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CExtDisablingNodeVisitor::enterNode public function Called before child nodes are visited. Overrides Twig_NodeVisitorInterface::enterNode
CExtDisablingNodeVisitor::getPriority public function Returns the priority for this visitor. Overrides Twig_NodeVisitorInterface::getPriority
CExtDisablingNodeVisitor::leaveNode public function Called after child nodes are visited. Overrides Twig_NodeVisitorInterface::leaveNode