You are here

public function Twig_TokenParser::setParser in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/TokenParser.php \Twig_TokenParser::setParser()

Sets the parser associated with this token parser

Parameters

$parser A Twig_Parser instance:

Overrides Twig_TokenParserInterface::setParser

File

vendor/Twig/TokenParser.php, line 29

Class

Twig_TokenParser
Base class for all token parsers.

Code

public function setParser(Twig_Parser $parser) {
  $this->parser = $parser;
}