public function Twig_Environment::getParser

Gets the Parser instance.

Return value

Twig_ParserInterface A Twig_ParserInterface instance

File

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

Class

Twig_Environment
Stores the Twig configuration.

Code

public function getParser() {
  if (null === $this->parser) {
    $this->parser = new Twig_Parser($this);
  }
  return $this->parser;
}