We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77804f9 commit 28cae48Copy full SHA for 28cae48
reference/forms/types/options/choice_label.rst.inc
@@ -29,6 +29,12 @@ more control::
29
},
30
]);
31
32
+.. versionadded:: 6.2
33
+
34
+ Starting from Symfony 6.2, you can use any object that implements
35
+ :class:`Symfony\\Contracts\\Translation\\TranslatableInterface` as the value
36
+ of the choice label.
37
38
This method is called for *each* choice, passing you the ``$choice`` and
39
``$key`` from the choices array (additional ``$value`` is related to `choice_value`_).
40
This will give you:
0 commit comments