public function Twig_Loader_Chain::isFresh

Returns true if the template is still fresh.

Parameters

string $name The template name:

timestamp $time The last modification time of the cached template:

Overrides Twig_LoaderInterface::isFresh

File

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

Class

Twig_Loader_Chain
Loads templates from other loaders.

Code

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