@@ -231,6 +231,8 @@ would replace the ``choices`` option.
231
231
232
232
.. include :: /reference/forms/types/options/placeholder.rst.inc
233
233
234
+ .. include :: /reference/forms/types/options/choice_translation_domain.rst.inc
235
+
234
236
.. include :: /reference/forms/types/options/expanded.rst.inc
235
237
236
238
.. include :: /reference/forms/types/options/multiple.rst.inc
@@ -346,29 +348,32 @@ type:
346
348
Field Variables
347
349
---------------
348
350
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
+ +----------------------------+--------------+-------------------------------------------------------------------+
372
377
373
378
.. tip ::
374
379
0 commit comments