class CExtDisablingNodeVisitor in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/test/Twig/Tests/TemplateTest.php \CExtDisablingNodeVisitor
Hierarchy
- class \CExtDisablingNodeVisitor implements Twig_NodeVisitorInterface
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CExtDisablingNodeVisitor:: |
public | function |
Called before child nodes are visited. Overrides Twig_NodeVisitorInterface:: |
|
CExtDisablingNodeVisitor:: |
public | function |
Returns the priority for this visitor. Overrides Twig_NodeVisitorInterface:: |
|
CExtDisablingNodeVisitor:: |
public | function |
Called after child nodes are visited. Overrides Twig_NodeVisitorInterface:: |