public function Twig_Loader_Chain::getCacheKey

Gets the cache key to use for the cache for a given template name.

Parameters

string $name The name of the template to load:

Return value

string The cache key

Overrides Twig_LoaderInterface::getCacheKey

File

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

Class

Twig_Loader_Chain
Loads templates from other loaders.

Code

public function getCacheKey($name) {
  foreach ($this->loaders as $loader) {
    try {
      return $loader
        ->getCacheKey($name);
    } catch (Twig_Error_Loader $e) {
    }
  }
  throw new Twig_Error_Loader(sprintf('Template "%s" is not defined.', $name));
}