You are here

public function Twig_Template::getEnvironment in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Template.php \Twig_Template::getEnvironment()

Returns the bound environment for this template.

Return value

Twig_Environment The current environment

Overrides Twig_TemplateInterface::getEnvironment

File

vendor/Twig/Template.php, line 50

Class

Twig_Template
Default base class for compiled templates.

Code

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