public function Twig_LoaderInterface::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:

Return value

Boolean true if the template is fresh, false otherwise

Throws

Twig_Error_Loader When $name is not found

4 methods override Twig_LoaderInterface::isFresh()
Twig_Loader_Array::isFresh in drupal/core/vendor/twig/twig/lib/Twig/Loader/Array.php
Returns true if the template is still fresh.
Twig_Loader_Chain::isFresh in drupal/core/vendor/twig/twig/lib/Twig/Loader/Chain.php
Returns true if the template is still fresh.
Twig_Loader_Filesystem::isFresh in drupal/core/vendor/twig/twig/lib/Twig/Loader/Filesystem.php
Returns true if the template is still fresh.
Twig_Loader_String::isFresh in drupal/core/vendor/twig/twig/lib/Twig/Loader/String.php
Returns true if the template is still fresh.

File

drupal/core/vendor/twig/twig/lib/Twig/LoaderInterface.php, line 51

Class

Twig_LoaderInterface
Interface all loaders must implement.

Code

public function isFresh($name, $time);