public TwigPhpStorageCache::getTimestamp($key)
Returns the modification timestamp of a key.
string $key The cache key:
int
Overrides Twig_CacheInterface::getTimestamp
public function getTimestamp($key) { $cid = 'twig:' . $key; if ($cache = $this->cache->get($cid)) { return $cache->data; } else { return 0; } }
© 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!TwigPhpStorageCache.php/function/TwigPhpStorageCache::getTimestamp/8.1.x