@@ -25,13 +25,13 @@ class SiteExtension extends \Twig_Extension
25
25
public function getFunctions ()
26
26
{
27
27
return array (
28
- 'prepend_page_title ' => new \Twig_Function_Method ($ this , 'prependPageTitle ' ),
29
- 'append_page_title ' => new \Twig_Function_Method ($ this , 'appendPageTitle ' ),
30
- 'page_title ' => new \Twig_Function_Method ($ this , 'getPageTitle ' ),
31
- 'meta_description ' => new \Twig_Function_Method ($ this , 'getMetaDescription ' ),
32
- 'set_meta_description ' => new \Twig_Function_Method ($ this , 'setMetaDescription ' ),
33
- 'meta_keywords ' => new \Twig_Function_Method ($ this , 'getMetaKeywords ' ),
34
- 'add_meta_keywords ' => new \Twig_Function_Method ($ this , 'addMetaKeywords ' ),
28
+ 'prepend_page_title ' => new \Twig_SimpleFunction ($ this , 'prependPageTitle ' ),
29
+ 'append_page_title ' => new \Twig_SimpleFunction ($ this , 'appendPageTitle ' ),
30
+ 'page_title ' => new \Twig_SimpleFunction ($ this , 'getPageTitle ' ),
31
+ 'meta_description ' => new \Twig_SimpleFunction ($ this , 'getMetaDescription ' ),
32
+ 'set_meta_description ' => new \Twig_SimpleFunction ($ this , 'setMetaDescription ' ),
33
+ 'meta_keywords ' => new \Twig_SimpleFunction ($ this , 'getMetaKeywords ' ),
34
+ 'add_meta_keywords ' => new \Twig_SimpleFunction ($ this , 'addMetaKeywords ' ),
35
35
);
36
36
}
37
37
0 commit comments