public function Twig_Environment::getLexer

Gets the Lexer instance.

Return value

Twig_LexerInterface A Twig_LexerInterface instance

File

drupal/core/vendor/twig/twig/lib/Twig/Environment.php, line 421

Class

Twig_Environment
Stores the Twig configuration.

Code

public function getLexer() {
  if (null === $this->lexer) {
    $this->lexer = new Twig_Lexer($this);
  }
  return $this->lexer;
}