protected function TwigPhpStorageCache::storage
protected 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 59
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; }
© 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::storage/8.1.x