You are here

public function Twig_Loader_Filesystem::getCacheKey in Translation template extractor 7.3

Same name and namespace in other branches
  1. 6.3 vendor/Twig/Loader/Filesystem.php \Twig_Loader_Filesystem::getCacheKey()

Gets the cache key to use for the cache for a given template name.

Parameters

string $name The name of the template to load:

Return value

string The cache key

Throws

Twig_Error_Loader When $name is not found

Overrides Twig_LoaderInterface::getCacheKey

File

vendor/Twig/Loader/Filesystem.php, line 137

Class

Twig_Loader_Filesystem
Loads template from the filesystem.

Code

public function getCacheKey($name) {
  return $this
    ->findTemplate($name);
}