public function Twig_Environment::getLoader

Gets the Loader instance.

Return value

Twig_LoaderInterface A Twig_LoaderInterface instance

File

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

Class

Twig_Environment
Stores the Twig configuration.

Code

public function getLoader() {
  if (null === $this->loader) {
    throw new LogicException('You must set a loader first.');
  }
  return $this->loader;
}