You are here

class CExtDisablingNodeVisitor in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/test/Twig/Tests/TemplateTest.php \CExtDisablingNodeVisitor

Hierarchy

Expanded class hierarchy of CExtDisablingNodeVisitor

File

vendor/twig/twig/test/Twig/Tests/TemplateTest.php, line 673

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