Twig_Environment::addGlobal
Registers a Global.
New globals can be added before compiling or rendering a template; but after, you can only update existing globals.
Signature
public function addGlobal(string
$name,
mixed
$value )
Parameters
$name
— string- The global name
$value
— mixed- The global value