public function Twig_TokenParser::setParser in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/TokenParser.php \Twig_TokenParser::setParser()
Sets the parser associated with this token parser.
Parameters
Twig_Parser $parser A Twig_Parser instance:
Overrides Twig_TokenParserInterface::setParser
File
- vendor/
twig/ twig/ lib/ Twig/ TokenParser.php, line 29
Class
- Twig_TokenParser
- Base class for all token parsers.
Code
public function setParser(Twig_Parser $parser) {
$this->parser = $parser;
}