public function Twig_Environment::getLexer in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/Environment.php \Twig_Environment::getLexer()
Gets the Lexer instance.
Return value
Twig_LexerInterface A Twig_LexerInterface instance
File
- vendor/
Twig/ Environment.php, line 438
Class
- Twig_Environment
- Stores the Twig configuration.
Code
public function getLexer() {
if (null === $this->lexer) {
$this->lexer = new Twig_Lexer($this);
}
return $this->lexer;
}