public function Twig_Environment::setLoader

Sets the Loader instance.

Parameters

Twig_LoaderInterface $loader A Twig_LoaderInterface instance:

1 call to Twig_Environment::setLoader()
Twig_Environment::__construct in drupal/core/vendor/twig/twig/lib/Twig/Environment.php
Constructor.

File

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

Class

Twig_Environment
Stores the Twig configuration.

Code

public function setLoader(Twig_LoaderInterface $loader) {
  $this->loader = $loader;
}