public function Twig_Environment::getTemplateClass

Gets the template class associated with the given string.

Parameters

string $name The name for which to calculate the template class name:

integer $index The index if it is an embedded template:

Return value

string The template class name

2 calls to Twig_Environment::getTemplateClass()
Twig_Environment::getCacheFilename in drupal/core/vendor/twig/twig/lib/Twig/Environment.php
Gets the cache filename for a given template.
Twig_Environment::loadTemplate in drupal/core/vendor/twig/twig/lib/Twig/Environment.php
Loads a template by name.

File

drupal/core/vendor/twig/twig/lib/Twig/Environment.php, line 270

Class

Twig_Environment
Stores the Twig configuration.

Code

public function getTemplateClass($name, $index = null) {
  return $this->templateClassPrefix . md5($this->loader
    ->getCacheKey($name)) . (null === $index ? '' : '_' . $index);
}