public function Twig_Template::getEnvironment

Returns the bound environment for this template.

Return value

Twig_Environment The current environment

Overrides Twig_TemplateInterface::getEnvironment

File

drupal/core/vendor/twig/twig/lib/Twig/Template.php, line 50

Class

Twig_Template
Default base class for compiled templates.

Code

public function getEnvironment() {
  return $this->env;
}