diff --git a/templating/twig_extension.rst b/templating/twig_extension.rst index 8d3630cdf72..36b9d8cce79 100644 --- a/templating/twig_extension.rst +++ b/templating/twig_extension.rst @@ -58,8 +58,8 @@ Create a class that extends ``AbstractExtension`` and fill in the logic:: } } -If you want to create a function instead of a filter, define the ``getFunctions()`` -method: +If you want to create a function instead of a filter, define the +``getFunctions()`` method:: // src/Twig/AppExtension.php namespace App\Twig;