public function TwigResource::isFresh

Checks if a timestamp represents the latest resource.

Parameters

integer $timestamp A UNIX timestamp:

Return value

Boolean True if the timestamp is up to date

Overrides ResourceInterface::isFresh

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Extension/Twig/TwigResource.php, line 41

Class

TwigResource
A Twig template resource.

Namespace

Assetic\Extension\Twig

Code

public function isFresh($timestamp) {
  try {
    return $this->loader
      ->isFresh($this->name, $timestamp);
  } catch (\Twig_Error_Loader $e) {
    return false;
  }
}