Gets registered functions.
Be warned that this method cannot return functions defined with registerUndefinedFunctionCallback.
Twig_FunctionInterface[] An array of Twig_FunctionInterface instances
registerUndefinedFunctionCallback
public function getFunctions() {
if (null === $this->functions) {
foreach ($this
->getExtensions() as $extension) {
foreach ($extension
->getFunctions() as $name => $function) {
$this
->addFunction($name, $function);
}
}
$this->functions = $this->staging['functions'];
}
return $this->functions;
}