public function TwigPhpStorageCache::write in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Template/TwigPhpStorageCache.php \Drupal\Core\Template\TwigPhpStorageCache::write()
File
- core/
lib/ Drupal/ Core/ Template/ TwigPhpStorageCache.php, line 101 - Contains \Drupal\Core\Template\TwigPhpStorageCache.
Class
- TwigPhpStorageCache
- Provides an alternate cache storage for Twig using PhpStorage.
Namespace
Drupal\Core\TemplateCode
public function write($key, $content) {
$this
->storage()
->save($key, $content);
// Save the last mtime.
$cid = 'twig:' . $key;
$this->cache
->set($cid, REQUEST_TIME);
}