You are here

public function Twig_Loader_Chain::addLoader in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/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/twig/lib/Twig/Loader/Chain.php
Constructor.

File

vendor/twig/twig/lib/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();
}