You are here

public function Twig_Environment::getCacheFilename in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Environment.php \Twig_Environment::getCacheFilename()

Gets the cache filename for a given template.

Parameters

string $name The template name:

Return value

string|false The cache file name or false when caching is disabled

Deprecated

since 1.22 (to be removed in 2.0)

1 call to Twig_Environment::getCacheFilename()
Twig_Environment::loadTemplate in vendor/twig/twig/lib/Twig/Environment.php
Loads a template by name.

File

vendor/twig/twig/lib/Twig/Environment.php, line 287

Class

Twig_Environment
Stores the Twig configuration.

Code

public function getCacheFilename($name) {
  @trigger_error(sprintf('The %s method is deprecated and will be removed in Twig 2.0.', __METHOD__), E_USER_DEPRECATED);
  $key = $this->cache
    ->generateKey($name, $this
    ->getTemplateClass($name));
  return !$key ? false : $key;
}