function Environment::setLoader
3 calls to Environment::setLoader()
- Environment::createTemplate in vendor/
twig/ twig/ src/ Environment.php - Creates a template from source.
- Environment::__construct in vendor/
twig/ twig/ src/ Environment.php - Constructor.
- TwigEnvironment::__construct in core/
lib/ Drupal/ Core/ Template/ TwigEnvironment.php - Creates a TwigEnvironment object, including its cache and storage.
File
-
vendor/
twig/ twig/ src/ Environment.php, line 576
Class
- Environment
- Stores the Twig configuration and renders templates.
Namespace
TwigCode
public function setLoader(LoaderInterface $loader) {
$this->loader = $loader;
}