mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 02:46:29 +00:00
Remove versionadded in 2.x in 3.x doc
This commit is contained in:
@@ -1,9 +1,6 @@
|
|||||||
``country_name``
|
``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
|
The ``country_name`` filter returns the country name given its ISO-3166
|
||||||
two-letter code:
|
two-letter code:
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``currency_name``
|
``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
|
The ``currency_name`` filter returns the currency name given its three-letter
|
||||||
code:
|
code:
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``currency_symbol``
|
``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
|
The ``currency_symbol`` filter returns the currency symbol given its three-letter
|
||||||
code:
|
code:
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``data_uri``
|
``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
|
The ``data_uri`` filter generates a URL using the data scheme as defined in RFC
|
||||||
2397:
|
2397:
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``format_currency``
|
``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:
|
The ``format_currency`` filter formats a number as a currency:
|
||||||
|
|
||||||
.. code-block:: twig
|
.. code-block:: twig
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``format_date``
|
``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_date`` filter formats a date. It behaves in the exact same way as
|
||||||
the ``format_datetime`` filter, but without the time.
|
the ``format_datetime`` filter, but without the time.
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``format_datetime``
|
``format_datetime``
|
||||||
===================
|
===================
|
||||||
|
|
||||||
.. versionadded:: 2.12
|
|
||||||
The ``format_datetime`` filter was added in Twig 2.12.
|
|
||||||
|
|
||||||
The ``format_datetime`` filter formats a date time:
|
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
|
public function formatDateTime(Environment $env, $date, ?string $dateFormat = 'medium', ?string $timeFormat = 'medium', string $pattern = '', $timezone = null, string $calendar = 'gregorian', string $locale = null): string
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``format_number``
|
``format_number``
|
||||||
=================
|
=================
|
||||||
|
|
||||||
.. versionadded:: 2.12
|
|
||||||
The ``format_number`` filter was added in Twig 2.12.
|
|
||||||
|
|
||||||
The ``format_number`` filter formats a number:
|
The ``format_number`` filter formats a number:
|
||||||
|
|
||||||
.. code-block:: twig
|
.. code-block:: twig
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``format_time``
|
``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_time`` filter formats a time. It behaves in the exact same way as
|
||||||
the ``format_datetime`` filter, but without the date.
|
the ``format_datetime`` filter, but without the date.
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``html_to_markdown``
|
``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:
|
The ``html_to_markdown`` filter converts a block of HTML to Markdown:
|
||||||
|
|
||||||
.. code-block:: twig
|
.. code-block:: twig
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``inky_to_html``
|
``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
|
The ``inky_to_html`` filter processes an `inky email template
|
||||||
<https://github.com/zurb/inky>`_:
|
<https://github.com/zurb/inky>`_:
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``inline_css``
|
``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:
|
The ``inline_css`` filter inline CSS styles in HTML documents:
|
||||||
|
|
||||||
.. code-block:: twig
|
.. code-block:: twig
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``language_name``
|
``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
|
The ``language_name`` filter returns the language name given its two-letter
|
||||||
code:
|
code:
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``locale_name``
|
``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
|
The ``locale_name`` filter returns the locale name given its two-letter
|
||||||
code:
|
code:
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``markdown_to_html``
|
``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:
|
The ``markdown_to_html`` filter converts a block of Markdown to HTML:
|
||||||
|
|
||||||
.. code-block:: twig
|
.. code-block:: twig
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``sort``
|
``sort``
|
||||||
========
|
========
|
||||||
|
|
||||||
.. versionadded:: 2.12
|
|
||||||
The ``arrow`` argument was added in Twig 2.12.
|
|
||||||
|
|
||||||
The ``sort`` filter sorts an array:
|
The ``sort`` filter sorts an array:
|
||||||
|
|
||||||
.. code-block:: twig
|
.. code-block:: twig
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``timezone_name``
|
``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:
|
The ``timezone_name`` filter returns the timezone name given a timezone identifier:
|
||||||
|
|
||||||
.. code-block:: twig
|
.. code-block:: twig
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``u``
|
``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
|
The ``u`` filter wraps a text in a Unicode object (a `Symfony UnicodeString
|
||||||
instance <https://symfony.com/doc/current/components/string.html>`_) that
|
instance <https://symfony.com/doc/current/components/string.html>`_) that
|
||||||
exposes methods to "manipulate" the string.
|
exposes methods to "manipulate" the string.
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``country_timezones``
|
``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
|
The ``country_timezones`` function returns the names of the timezones associated
|
||||||
with a given country code:
|
with a given country code:
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
``html_classes``
|
``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
|
The ``html_classes`` function returns a string by conditionally joining class
|
||||||
names together:
|
names together:
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
are only defined in the current macro and they override macros defined at the
|
||||||
template level with the same names.
|
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
|
Checking if a Macro is defined
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -832,9 +832,6 @@ the modifiers on one side of a tag or on both sides:
|
|||||||
|
|
||||||
{# output will be <div><strong>foo bar</strong></div> #}
|
{# output will be <div><strong>foo bar</strong></div> #}
|
||||||
|
|
||||||
The ``apply`` tag was introduced in Twig 2.9; use the ``filter`` tag with
|
|
||||||
previous versions.
|
|
||||||
|
|
||||||
Extensions
|
Extensions
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user