We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent9d00f0b commit2f9866cCopy full SHA for 2f9866c
reference/forms/types/options/choice_label.rst.inc
@@ -4,7 +4,7 @@ choice_label
4
.. versionadded:: 2.7
5
The ``choice_label`` option was introduced in Symfony 2.7.
6
7
-**type**: ``string``, ``bool``, ``callable`` or ``PropertyPath`` **default**: ``null``
+**type**: ``string``, ``callable`` or ``false`` **default**: ``null``
8
9
Normally, the array key of each item in the ``choices`` option is used as the
10
text that's shown to the user. The ``choice_label`` option allows you to take
@@ -50,5 +50,4 @@ If your choice values are objects, then ``choice_label`` can also be a
50
));
51
52
If set to ``false``, all the tag labels will be discarded for radio or checkbox
53
-inputs. You can also return ``false`` from the callable to discard only the label
54
-of the processed tag.
+inputs. You can also return ``false`` from the callable to discard certain labels.