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\Template

Code

protected function storage() {
  if (!isset($this->storage)) {
    $this->storage = PhpStorageFactory::get('twig');
  }
  return $this->storage;
}
doc_Drupal
2016-10-29 09:49:46
Comments
Leave a Comment

Please login to continue.