diff --git a/doc/filters/country_name.rst b/doc/filters/country_name.rst index 7e267f12f..5c29655b1 100644 --- a/doc/filters/country_name.rst +++ b/doc/filters/country_name.rst @@ -1,9 +1,6 @@ ``country_name`` ================ -.. versionadded:: 2.12 - The ``country_name`` filter was added in Twig 2.12. - The ``country_name`` filter returns the country name given its ISO-3166 two-letter code: diff --git a/doc/filters/currency_name.rst b/doc/filters/currency_name.rst index a665e4b6f..f7f889700 100644 --- a/doc/filters/currency_name.rst +++ b/doc/filters/currency_name.rst @@ -1,9 +1,6 @@ ``currency_name`` ================= -.. versionadded:: 2.12 - The ``currency_name`` filter was added in Twig 2.12. - The ``currency_name`` filter returns the currency name given its three-letter code: diff --git a/doc/filters/currency_symbol.rst b/doc/filters/currency_symbol.rst index 8d533c991..94ed616b0 100644 --- a/doc/filters/currency_symbol.rst +++ b/doc/filters/currency_symbol.rst @@ -1,9 +1,6 @@ ``currency_symbol`` =================== -.. versionadded:: 2.12 - The ``currency_symbol`` filter was added in Twig 2.12. - The ``currency_symbol`` filter returns the currency symbol given its three-letter code: diff --git a/doc/filters/data_uri.rst b/doc/filters/data_uri.rst index fa5a81ed3..8f4be8d5d 100644 --- a/doc/filters/data_uri.rst +++ b/doc/filters/data_uri.rst @@ -1,9 +1,6 @@ ``data_uri`` ============ -.. versionadded:: 2.12 - The ``data_uri`` filter was added in Twig 2.12. - The ``data_uri`` filter generates a URL using the data scheme as defined in RFC 2397: diff --git a/doc/filters/format_currency.rst b/doc/filters/format_currency.rst index 8be71ac0f..86f8431ed 100644 --- a/doc/filters/format_currency.rst +++ b/doc/filters/format_currency.rst @@ -1,9 +1,6 @@ ``format_currency`` =================== -.. versionadded:: 2.12 - The ``format_currency`` filter was added in Twig 2.12. - The ``format_currency`` filter formats a number as a currency: .. code-block:: twig diff --git a/doc/filters/format_date.rst b/doc/filters/format_date.rst index 39c80949b..42e3a1d7c 100644 --- a/doc/filters/format_date.rst +++ b/doc/filters/format_date.rst @@ -1,9 +1,6 @@ ``format_date`` =============== -.. versionadded:: 2.12 - The ``format_date`` filter was added in Twig 2.12. - The ``format_date`` filter formats a date. It behaves in the exact same way as the ``format_datetime`` filter, but without the time. diff --git a/doc/filters/format_datetime.rst b/doc/filters/format_datetime.rst index aba69e740..feea8b51b 100644 --- a/doc/filters/format_datetime.rst +++ b/doc/filters/format_datetime.rst @@ -1,9 +1,6 @@ ``format_datetime`` =================== -.. versionadded:: 2.12 - The ``format_datetime`` filter was added in Twig 2.12. - The ``format_datetime`` filter formats a date time: public function formatDateTime(Environment $env, $date, ?string $dateFormat = 'medium', ?string $timeFormat = 'medium', string $pattern = '', $timezone = null, string $calendar = 'gregorian', string $locale = null): string diff --git a/doc/filters/format_number.rst b/doc/filters/format_number.rst index b8a9a0ffc..9983b8245 100644 --- a/doc/filters/format_number.rst +++ b/doc/filters/format_number.rst @@ -1,9 +1,6 @@ ``format_number`` ================= -.. versionadded:: 2.12 - The ``format_number`` filter was added in Twig 2.12. - The ``format_number`` filter formats a number: .. code-block:: twig diff --git a/doc/filters/format_time.rst b/doc/filters/format_time.rst index e46e246bb..b917bb4b9 100644 --- a/doc/filters/format_time.rst +++ b/doc/filters/format_time.rst @@ -1,9 +1,6 @@ ``format_time`` =============== -.. versionadded:: 2.12 - The ``format_time`` filter was added in Twig 2.12. - The ``format_time`` filter formats a time. It behaves in the exact same way as the ``format_datetime`` filter, but without the date. diff --git a/doc/filters/html_to_markdown.rst b/doc/filters/html_to_markdown.rst index b60327197..7750d619d 100644 --- a/doc/filters/html_to_markdown.rst +++ b/doc/filters/html_to_markdown.rst @@ -1,9 +1,6 @@ ``html_to_markdown`` ==================== -.. versionadded:: 2.12 - The ``html_to_markdown`` filter was added in Twig 2.12. - The ``html_to_markdown`` filter converts a block of HTML to Markdown: .. code-block:: twig diff --git a/doc/filters/inky_to_html.rst b/doc/filters/inky_to_html.rst index 5462b572d..8d744a236 100644 --- a/doc/filters/inky_to_html.rst +++ b/doc/filters/inky_to_html.rst @@ -1,9 +1,6 @@ ``inky_to_html`` ================ -.. versionadded:: 2.12 - The ``inky_to_html`` filter was added in Twig 2.12. - The ``inky_to_html`` filter processes an `inky email template `_: diff --git a/doc/filters/inline_css.rst b/doc/filters/inline_css.rst index d0f75c966..0cda12b29 100644 --- a/doc/filters/inline_css.rst +++ b/doc/filters/inline_css.rst @@ -1,9 +1,6 @@ ``inline_css`` ============== -.. versionadded:: 2.12 - The ``inline_css`` filter was added in Twig 2.12. - The ``inline_css`` filter inline CSS styles in HTML documents: .. code-block:: twig diff --git a/doc/filters/language_name.rst b/doc/filters/language_name.rst index ca9b00d38..aee3a220e 100644 --- a/doc/filters/language_name.rst +++ b/doc/filters/language_name.rst @@ -1,9 +1,6 @@ ``language_name`` ================= -.. versionadded:: 2.12 - The ``language_name`` filter was added in Twig 2.12. - The ``language_name`` filter returns the language name given its two-letter code: diff --git a/doc/filters/locale_name.rst b/doc/filters/locale_name.rst index d5ecc1a0e..8df258f88 100644 --- a/doc/filters/locale_name.rst +++ b/doc/filters/locale_name.rst @@ -1,9 +1,6 @@ ``locale_name`` =============== -.. versionadded:: 2.12 - The ``locale_name`` filter was added in Twig 2.12. - The ``locale_name`` filter returns the locale name given its two-letter code: diff --git a/doc/filters/markdown_to_html.rst b/doc/filters/markdown_to_html.rst index 8e515be80..0aafcb7bb 100644 --- a/doc/filters/markdown_to_html.rst +++ b/doc/filters/markdown_to_html.rst @@ -1,9 +1,6 @@ ``markdown_to_html`` ==================== -.. versionadded:: 2.12 - The ``markdown_to_html`` filter was added in Twig 2.12. - The ``markdown_to_html`` filter converts a block of Markdown to HTML: .. code-block:: twig diff --git a/doc/filters/sort.rst b/doc/filters/sort.rst index 1df70ffdb..cc88fd78e 100644 --- a/doc/filters/sort.rst +++ b/doc/filters/sort.rst @@ -1,9 +1,6 @@ ``sort`` ======== -.. versionadded:: 2.12 - The ``arrow`` argument was added in Twig 2.12. - The ``sort`` filter sorts an array: .. code-block:: twig diff --git a/doc/filters/timezone_name.rst b/doc/filters/timezone_name.rst index e42cf28b4..c76836fac 100644 --- a/doc/filters/timezone_name.rst +++ b/doc/filters/timezone_name.rst @@ -1,9 +1,6 @@ ``timezone_name`` ================= -.. versionadded:: 2.12 - The ``timezone_name`` filter was added in Twig 2.12. - The ``timezone_name`` filter returns the timezone name given a timezone identifier: .. code-block:: twig diff --git a/doc/filters/u.rst b/doc/filters/u.rst index d0b787633..8ab740a18 100644 --- a/doc/filters/u.rst +++ b/doc/filters/u.rst @@ -1,9 +1,6 @@ ``u`` ===== -.. versionadded:: 2.12.1 - The ``u`` filter was added in Twig 2.12.1. - The ``u`` filter wraps a text in a Unicode object (a `Symfony UnicodeString instance `_) that exposes methods to "manipulate" the string. diff --git a/doc/functions/country_timezones.rst b/doc/functions/country_timezones.rst index ff6382523..5abc4ca1e 100644 --- a/doc/functions/country_timezones.rst +++ b/doc/functions/country_timezones.rst @@ -1,9 +1,6 @@ ``country_timezones`` ===================== -.. versionadded:: 2.12 - The ``country_timezones`` function was added in Twig 2.12. - The ``country_timezones`` function returns the names of the timezones associated with a given country code: diff --git a/doc/functions/html_classes.rst b/doc/functions/html_classes.rst index 0bf9d088e..f52e8fdb1 100644 --- a/doc/functions/html_classes.rst +++ b/doc/functions/html_classes.rst @@ -1,9 +1,6 @@ ``html_classes`` ================ -.. versionadded:: 2.12 - The ``html_classes`` function was added in Twig 2.12. - The ``html_classes`` function returns a string by conditionally joining class names together: diff --git a/doc/tags/macro.rst b/doc/tags/macro.rst index 15b7f0817..7025920ef 100644 --- a/doc/tags/macro.rst +++ b/doc/tags/macro.rst @@ -105,12 +105,6 @@ When calling ``import`` or ``from`` from a ``macro`` tag, the imported macros are only defined in the current macro and they override macros defined at the template level with the same names. -.. note:: - - Before Twig 2.11, it was possible to use macros imported in a block in a - "sub-block". When upgrading to 2.11, you need to either move the import in - the global scope or reimport the macros explicitly in the "sub-blocks". - Checking if a Macro is defined ------------------------------ diff --git a/doc/templates.rst b/doc/templates.rst index 1c333890e..4db22881f 100644 --- a/doc/templates.rst +++ b/doc/templates.rst @@ -832,9 +832,6 @@ the modifiers on one side of a tag or on both sides: {# output will be
foo bar
#} - The ``apply`` tag was introduced in Twig 2.9; use the ``filter`` tag with - previous versions. - Extensions ----------