public function StringLoader::isFresh

public StringLoader::isFresh($name, $time)

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

Overrides Twig_LoaderInterface::isFresh

File

core/lib/Drupal/Core/Template/Loader/StringLoader.php, line 54

Class

StringLoader
Loads string templates, also known as inline templates.

Namespace

Drupal\Core\Template\Loader

Code

public function isFresh($name, $time) {
  return TRUE;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Template!Loader!StringLoader.php/function/StringLoader::isFresh/8.1.x