Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Form] Update enum.rst: Adding choice_label #20387

Open
wants to merge 2 commits into
base: 5.4
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions reference/forms/types/enum.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
EnumType Field

Check failure on line 1 in reference/forms/types/enum.rst

View workflow job for this annotation

GitHub Actions / Code Blocks

[PHP syntax] Syntax error, unexpected T_DOUBLE_ARROW
==============

Check failure on line 3 in reference/forms/types/enum.rst

View workflow job for this annotation

GitHub Actions / Code Blocks

[PHP syntax] Syntax error, unexpected ','
.. versionadded:: 5.4

The ``EnumType`` form field was introduced in Symfony 5.4.

Check failure on line 6 in reference/forms/types/enum.rst

View workflow job for this annotation

GitHub Actions / Code Blocks

[PHP syntax] Syntax error, unexpected T_DOUBLE_ARROW

A multi-purpose field used to allow the user to "choose" one or more options
defined in a `PHP enumeration`_. It extends the :doc:`ChoiceType </reference/forms/types/choice>`
Expand All @@ -11,7 +11,7 @@

+---------------------------+----------------------------------------------------------------------+
| Rendered as | can be various tags (see below) |
+---------------------------+----------------------------------------------------------------------+

Check failure on line 14 in reference/forms/types/enum.rst

View workflow job for this annotation

GitHub Actions / Code Blocks

[PHP syntax] Syntax error, unexpected ','
| Default invalid message | The selected choice is invalid. |
+---------------------------+----------------------------------------------------------------------+
| Legacy invalid message | The value {{ value }} is not valid. |
Expand Down Expand Up @@ -83,6 +83,22 @@

These options inherit from the :doc:`ChoiceType </reference/forms/types/choice>`:

.. include:: /reference/forms/types/options/choice_attr.rst.inc

.. include:: /reference/forms/types/options/choice_filter.rst.inc

.. include:: /reference/forms/types/options/choice_label.rst.inc

.. include:: /reference/forms/types/options/choice_loader.rst.inc

.. include:: /reference/forms/types/options/choice_name.rst.inc

.. include:: /reference/forms/types/options/choice_translation_domain_enabled.rst.inc

.. include:: /reference/forms/types/options/choice_translation_parameters.rst.inc

.. include:: /reference/forms/types/options/choice_value.rst.inc

.. include:: /reference/forms/types/options/error_bubbling.rst.inc

.. include:: /reference/forms/types/options/error_mapping.rst.inc
Expand Down
Loading