|
@@ -31,9 +31,9 @@ class MyTwigExtension extends \Twig_Extension {
|
31
|
31
|
|
32
|
32
|
public function getFunctions() {
|
33
|
33
|
return array(
|
34
|
|
- 'date_or_relative_date' => new \Twig_Filter_Method($this, 'date_or_relative_date'),
|
35
|
|
- 'event_const' => new \Twig_Filter_Method($this, 'event_const'),
|
36
|
|
- 'css_list_length_class' => new \Twig_Filter_Method($this, 'getCssLengthClassForList')
|
|
34
|
+ 'date_or_relative_date' => new \Twig_Function_Method($this, 'date_or_relative_date'),
|
|
35
|
+ 'event_const' => new \Twig_Function_Method($this, 'event_const'),
|
|
36
|
+ 'css_list_length_class' => new \Twig_Function_Method($this, 'getCssLengthClassForList')
|
37
|
37
|
);
|
38
|
38
|
}
|
39
|
39
|
|