public TwigPhpStorageCache::write($key, $content)
Writes the compiled template to cache.
Parameters
string $key The cache key:
string $content The template representation as a PHP class:
Overrides Twig_CacheInterface::write
File
- core/lib/Drupal/Core/Template/TwigPhpStorageCache.php, line 96
Class
- TwigPhpStorageCache
- Provides an alternate cache storage for Twig using PhpStorage.
Namespace
Drupal\Core\Template
Code
public function write($key, $content) { $this->storage()->save($key, $content); // Save the last mtime. $cid = 'twig:' . $key; $this->cache->set($cid, REQUEST_TIME); }
Please login to continue.