public function Twig_Loader_Filesystem::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/Filesystem.php, line 107

Class

Twig_Loader_Filesystem
Loads template from the filesystem.

Code

public function isFresh($name, $time) {
  return filemtime($this
    ->findTemplate($name)) <= $time;
}