You are here

public function Twig_Parser::addNodeVisitor in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Parser.php \Twig_Parser::addNodeVisitor()

File

vendor/Twig/Parser.php, line 210

Class

Twig_Parser
Default parser implementation.

Code

public function addNodeVisitor(Twig_NodeVisitorInterface $visitor) {
  $this->visitors[] = $visitor;
}