public function FileResource::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/Factory/Resource/FileResource.php, line 33

Class

FileResource
A resource is something formulae can be loaded from.

Namespace

Assetic\Factory\Resource

Code

public function isFresh($timestamp) {
  return file_exists($this->path) && filemtime($this->path) <= $timestamp;
}