You are here

public function Twig_Loader_Chain::addLoader in Translation template extractor 7.3

Same name and namespace in other branches
  1. 6.3 vendor/Twig/Loader/Chain.php \Twig_Loader_Chain::addLoader()

Adds a loader instance.

Parameters

Twig_LoaderInterface $loader A Loader instance:

1 call to Twig_Loader_Chain::addLoader()
Twig_Loader_Chain::__construct in vendor/Twig/Loader/Chain.php
Constructor.

File

vendor/Twig/Loader/Chain.php, line 39

Class

Twig_Loader_Chain
Loads templates from other loaders.

Code

public function addLoader(Twig_LoaderInterface $loader) {
  $this->loaders[] = $loader;
  $this->hasSourceCache = array();
}