You are here

public function Twig_LoaderInterface::isFresh in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/LoaderInterface.php \Twig_LoaderInterface::isFresh()

Returns true if the template is still fresh.

Parameters

string $name The template name:

int $time Timestamp of the last modification time of the: cached template

Return value

bool 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 vendor/twig/twig/lib/Twig/Loader/Array.php
Returns true if the template is still fresh.
Twig_Loader_Chain::isFresh in vendor/twig/twig/lib/Twig/Loader/Chain.php
Returns true if the template is still fresh.
Twig_Loader_Filesystem::isFresh in vendor/twig/twig/lib/Twig/Loader/Filesystem.php
Returns true if the template is still fresh.
Twig_Loader_String::isFresh in vendor/twig/twig/lib/Twig/Loader/String.php
Returns true if the template is still fresh.

File

vendor/twig/twig/lib/Twig/LoaderInterface.php, line 52

Class

Twig_LoaderInterface
Interface all loaders must implement.

Code

public function isFresh($name, $time);