You are here

public function Twig_Compiler::getVarName in Zircon Profile 8

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

File

vendor/twig/twig/lib/Twig/Compiler.php, line 273

Class

Twig_Compiler
Compiles a node to PHP code.

Code

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