You are here

public function TwigEnvironment::getTwigCachePrefix in Drupal 8

Same name and namespace in other branches
  1. 9 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 121

Class

TwigEnvironment
A class that defines a Twig environment for Drupal.

Namespace

Drupal\Core\Template

Code

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