You are here

public function Twig_Compiler::getVarName in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Compiler.php \Twig_Compiler::getVarName()

File

vendor/Twig/Compiler.php, line 272

Class

Twig_Compiler
Compiles a node to PHP code.

Code

public function getVarName() {
  return sprintf('__internal_%s', hash('sha256', uniqid(mt_rand(), true), false));
}