protected function TwigEnvironment::storage

Gets the PHP code storage object to use for the compiled Twig files.

Return value

\Drupal\Component\PhpStorage\PhpStorageInterface

File

drupal/core/lib/Drupal/Core/Template/TwigEnvironment.php, line 115
Definition of Drupal\Core\Template\TwigEnvironment.

Class

TwigEnvironment
A class that defines a Twig environment for Drupal.

Namespace

Drupal\Core\Template

Code

protected function storage() {
  if (!isset($this->storage)) {
    $this->storage = PhpStorageFactory::get('twig');
  }
  return $this->storage;
}