You are here

public function TwigPhpStorageCache::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Template/TwigPhpStorageCache.php \Drupal\Core\Template\TwigPhpStorageCache::__construct()

Store cache backend and other information internally.

Parameters

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache bin.

string $twig_extension_hash: The Twig extension hash.

File

core/lib/Drupal/Core/Template/TwigPhpStorageCache.php, line 54
Contains \Drupal\Core\Template\TwigPhpStorageCache.

Class

TwigPhpStorageCache
Provides an alternate cache storage for Twig using PhpStorage.

Namespace

Drupal\Core\Template

Code

public function __construct(CacheBackendInterface $cache, $twig_extension_hash) {
  $this->cache = $cache;
  $this->templateCacheFilenamePrefix = $twig_extension_hash;
}