diff --git a/reference/forms/types/choice.rst b/reference/forms/types/choice.rst index 012353f1b06..6a2e7e619c5 100644 --- a/reference/forms/types/choice.rst +++ b/reference/forms/types/choice.rst @@ -17,6 +17,7 @@ To use this field, you must specify *either* ``choices`` or ``choice_loader`` op | | - `choice_loader`_ | | | - `choice_label`_ | | | - `choice_attr`_ | +| | - `choice_translation_domain`_ | | | - `placeholder`_ | | | - `expanded`_ | | | - `multiple`_ | @@ -41,6 +42,7 @@ To use this field, you must specify *either* ``choices`` or ``choice_loader`` op | | - `mapped`_ | | | - `read_only`_ | | | - `required`_ | +| | - `translation_domain`_ | +-------------+------------------------------------------------------------------------------+ | Parent type | :doc:`form ` | +-------------+------------------------------------------------------------------------------+ @@ -348,6 +350,8 @@ type: .. include:: /reference/forms/types/options/required.rst.inc +.. include:: /reference/forms/types/options/choice_type_translation_domain.rst.inc + Field Variables --------------- diff --git a/reference/forms/types/entity.rst b/reference/forms/types/entity.rst index 85cff817bc9..434db25388f 100644 --- a/reference/forms/types/entity.rst +++ b/reference/forms/types/entity.rst @@ -24,6 +24,7 @@ objects from the database. | options | | | | - `placeholder`_ | | | - `choice_translation_domain`_ | +| | - `translation_domain`_ | | | - `expanded`_ | | | - `multiple`_ | | | - `preferred_choices`_ | @@ -176,7 +177,6 @@ em If specified, this entity manager will be used to load the choices instead of the ``default`` entity manager. - Overridden Options ------------------ @@ -199,6 +199,8 @@ type: .. include:: /reference/forms/types/options/choice_translation_domain.rst.inc +.. include:: /reference/forms/types/options/choice_type_translation_domain.rst.inc + .. include:: /reference/forms/types/options/expanded.rst.inc .. include:: /reference/forms/types/options/multiple.rst.inc diff --git a/reference/forms/types/options/choice_type_translation_domain.rst.inc b/reference/forms/types/options/choice_type_translation_domain.rst.inc new file mode 100644 index 00000000000..87cd76cff9a --- /dev/null +++ b/reference/forms/types/options/choice_type_translation_domain.rst.inc @@ -0,0 +1,8 @@ +translation_domain +~~~~~~~~~~~~~~~~~~ + +**type**: ``string`` **default**: ``messages`` + +In case `choice_translation_domain`_ is set to ``true`` or ``null``, this +configures the exact translation domain that will be used for any labels or +options that are rendered for this field