function TwigEnvironment::getTwigCachePrefix

Same name in other branches
  1. 9 core/lib/Drupal/Core/Template/TwigEnvironment.php \Drupal\Core\Template\TwigEnvironment::getTwigCachePrefix()
  2. 8.9.x core/lib/Drupal/Core/Template/TwigEnvironment.php \Drupal\Core\Template\TwigEnvironment::getTwigCachePrefix()
  3. 11.x core/lib/Drupal/Core/Template/TwigEnvironment.php \Drupal\Core\Template\TwigEnvironment::getTwigCachePrefix()

Get the cache prefixed used by \Drupal\Core\Template\TwigPhpStorageCache.

Return value

string The file cache prefix, or empty string if the cache is disabled.

File

core/lib/Drupal/Core/Template/TwigEnvironment.php, line 151

Class

TwigEnvironment
A class that defines a Twig environment for Drupal.

Namespace

Drupal\Core\Template

Code

public function getTwigCachePrefix() {
    return $this->twigCachePrefix;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.