Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. FilesystemCache.php

function FilesystemCache::getTimestamp

Overrides CacheInterface::getTimestamp

File

vendor/twig/twig/src/Cache/FilesystemCache.php, line 87

Class

FilesystemCache
Implements a cache on the filesystem.

Namespace

Twig\Cache

Code

public function getTimestamp(string $key) : int {
    if (!is_file($key)) {
        return 0;
    }
    return (int) @filemtime($key);
}
RSS feed
Powered by Drupal