protected function TwigPhpStorageCache::storage in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Template/TwigPhpStorageCache.php \Drupal\Core\Template\TwigPhpStorageCache::storage()
- 9 core/lib/Drupal/Core/Template/TwigPhpStorageCache.php \Drupal\Core\Template\TwigPhpStorageCache::storage()
Gets the PHP code storage object to use for the compiled Twig files.
Return value
\Drupal\Component\PhpStorage\PhpStorageInterface
File
- core/
lib/ Drupal/ Core/ Template/ TwigPhpStorageCache.php, line 66
Class
- TwigPhpStorageCache
- Provides an alternate cache storage for Twig using PhpStorage.
Namespace
Drupal\Core\TemplateCode
protected function storage() {
if (!isset($this->storage)) {
$this->storage = PhpStorageFactory::get('twig');
}
return $this->storage;
}