Returns a list of global functions to add to the existing list.
array An array of global functions
public function getFunctions() {
return array(
new Twig_SimpleFunction('range', 'range'),
new Twig_SimpleFunction('constant', 'twig_constant'),
new Twig_SimpleFunction('cycle', 'twig_cycle'),
new Twig_SimpleFunction('random', 'twig_random', array(
'needs_environment' => true,
)),
new Twig_SimpleFunction('date', 'twig_date_converter', array(
'needs_environment' => true,
)),
new Twig_SimpleFunction('include', 'twig_include', array(
'needs_environment' => true,
'needs_context' => true,
)),
);
}