public function Twig_Loader_Chain::__construct

Constructor.

Parameters

Twig_LoaderInterface[] $loaders An array of loader instances:

File

drupal/core/vendor/twig/twig/lib/Twig/Loader/Chain.php, line 27

Class

Twig_Loader_Chain
Loads templates from other loaders.

Code

public function __construct(array $loaders = array()) {
  $this->loaders = array();
  foreach ($loaders as $loader) {
    $this
      ->addLoader($loader);
  }
}