public function Twig_Parser::getVarName

File

drupal/core/vendor/twig/twig/lib/Twig/Parser.php, line 52

Class

Twig_Parser
Default parser implementation.

Code

public function getVarName() {
  return sprintf('__internal_%s_%d', substr($this->env
    ->getTemplateClass($this->stream
    ->getFilename()), strlen($this->env
    ->getTemplateClassPrefix())), ++$this->tmpVarCount);
}