@@ -231,6 +231,8 @@ would replace the ``choices`` option.
231231
232232.. include :: /reference/forms/types/options/placeholder.rst.inc
233233
234+ .. include :: /reference/forms/types/options/choice_translation_domain.rst.inc
235+
234236.. include :: /reference/forms/types/options/expanded.rst.inc
235237
236238.. include :: /reference/forms/types/options/multiple.rst.inc
@@ -346,29 +348,32 @@ type:
346348Field Variables
347349---------------
348350
349- +------------------------+--------------+-------------------------------------------------------------------+
350- | Variable | Type | Usage |
351- +========================+==============+===================================================================+
352- | multiple | ``boolean `` | The value of the `multiple `_ option. |
353- +------------------------+--------------+-------------------------------------------------------------------+
354- | expanded | ``boolean `` | The value of the `expanded `_ option. |
355- +------------------------+--------------+-------------------------------------------------------------------+
356- | preferred_choices | ``array `` | A nested array containing the ``ChoiceView `` objects of |
357- | | | choices which should be presented to the user with priority. |
358- +------------------------+--------------+-------------------------------------------------------------------+
359- | choices | ``array `` | A nested array containing the ``ChoiceView `` objects of |
360- | | | the remaining choices. |
361- +------------------------+--------------+-------------------------------------------------------------------+
362- | separator | ``string `` | The separator to use between choice groups. |
363- +------------------------+--------------+-------------------------------------------------------------------+
364- | placeholder | ``mixed `` | The empty value if not already in the list, otherwise |
365- | | | ``null ``. |
366- +------------------------+--------------+-------------------------------------------------------------------+
367- | is_selected | ``callable `` | A callable which takes a ``ChoiceView `` and the selected value(s) |
368- | | | and returns whether the choice is in the selected value(s). |
369- +------------------------+--------------+-------------------------------------------------------------------+
370- | placeholder_in_choices | ``boolean `` | Whether the empty value is in the choice list. |
371- +------------------------+--------------+-------------------------------------------------------------------+
351+ +----------------------------+--------------+-------------------------------------------------------------------+
352+ | Variable | Type | Usage |
353+ +============================+==============+===================================================================+
354+ | multiple | ``boolean `` | The value of the `multiple `_ option. |
355+ +----------------------------+--------------+-------------------------------------------------------------------+
356+ | expanded | ``boolean `` | The value of the `expanded `_ option. |
357+ +----------------------------+--------------+-------------------------------------------------------------------+
358+ | preferred_choices | ``array `` | A nested array containing the ``ChoiceView `` objects of |
359+ | | | choices which should be presented to the user with priority. |
360+ +----------------------------+--------------+-------------------------------------------------------------------+
361+ | choices | ``array `` | A nested array containing the ``ChoiceView `` objects of |
362+ | | | the remaining choices. |
363+ +----------------------------+--------------+-------------------------------------------------------------------+
364+ | separator | ``string `` | The separator to use between choice groups. |
365+ +----------------------------+--------------+-------------------------------------------------------------------+
366+ | placeholder | ``mixed `` | The empty value if not already in the list, otherwise |
367+ | | | ``null ``. |
368+ +----------------------------+--------------+-------------------------------------------------------------------+
369+ | choice_translation_domain | ``mixed `` | ``boolean ``, ``null `` or ``string `` to determine if the value |
370+ | | | should be translated. |
371+ +----------------------------+--------------+-------------------------------------------------------------------+
372+ | is_selected | ``callable `` | A callable which takes a ``ChoiceView `` and the selected value(s) |
373+ | | | and returns whether the choice is in the selected value(s). |
374+ +----------------------------+--------------+-------------------------------------------------------------------+
375+ | placeholder_in_choices | ``boolean `` | Whether the empty value is in the choice list. |
376+ +----------------------------+--------------+-------------------------------------------------------------------+
372377
373378.. tip ::
374379
0 commit comments