We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a7b45 commit 00f36bbCopy full SHA for 00f36bb
templating/twig_extension.rst
@@ -49,13 +49,15 @@ As an example you'll create a price filter to format a given number into price::
49
50
return $price;
51
}
52
-
53
- public function getName()
54
- {
55
- return 'app_extension';
56
- }
57
58
+.. note::
+
+ Prior to Twig 1.26, your extension had to provide an additional `getName` method that
+ returned the extension's internal name. When your extension needs to be compatible
+ with Twig versions before 1.26, include this method which is omitted in the example
59
+ above.
60
61
.. tip::
62
63
Along with custom filters, you can also add custom `functions`_ and register
0 commit comments