You are here

public function Twig_Template::getEnvironment in Translation template extractor 7.3

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

Overrides Twig_TemplateInterface::getEnvironment

Deprecated

since 1.20 (to be removed in 2.0)

File

vendor/Twig/Template.php, line 48

Class

Twig_Template
Default base class for compiled templates.

Code

public function getEnvironment() {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 1.20 and will be removed in 2.0.', E_USER_DEPRECATED);
  return $this->env;
}