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