You are here

public function Twig_LoaderInterface::isFresh in Translation template extractor 7.3

Same name and namespace in other branches
  1. 6.3 vendor/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/Loader/Array.php
Returns true if the template is still fresh.
Twig_Loader_Chain::isFresh in vendor/Twig/Loader/Chain.php
Returns true if the template is still fresh.
Twig_Loader_Filesystem::isFresh in vendor/Twig/Loader/Filesystem.php
Returns true if the template is still fresh.
Twig_Loader_String::isFresh in vendor/Twig/Loader/String.php
Returns true if the template is still fresh.

File

vendor/Twig/LoaderInterface.php, line 52

Class

Twig_LoaderInterface
Interface all loaders must implement.

Code

public function isFresh($name, $time);