/** * {@inheritdoc} */ public function enterNode(\Twig_NodeInterface $node, \Twig_Environment $env) { if ($node instanceof RegionNode) { $this->regions[] = $node->getAttributes(); return $node; } if ($node instanceof \Twig_Node_Include) { $this->includes[] = $node->getNode('expr')->getAttribute('value'); return $node; } return $node; }