Skip to content

Commit 200683e

Browse files
javiereguiluzxabbuh
authored andcommitted
Minor change
1 parent c59a8d5 commit 200683e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

templating/twig_extension.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ As an example you'll create a price filter to format a given number into price::
5151
}
5252
}
5353

54-
.. note::
54+
.. note::.. note::
5555
56-
  Prior to Twig 1.26, your extension had to provide an additional ``getName`` method that
57-
returned the extension's internal name. When your extension needs to be compatible
58-
with Twig versions before 1.26, include this method which is omitted in the example
56+
  Prior to Twig 1.26, your extension had to define an additional ``getName()``
57+
method that returned a string with the extension's internal name (e.g.
58+
``app.my_extension``). When your extension needs to be compatible with Twig
59+
versions before 1.26, include this method which is omitted in the example
5960
above.
6061

6162
.. tip::

0 commit comments

Comments
 (0)