8000 [#6282] Removing PropertyPath as type and clarifying last sentence · symfony/symfony-docs@2f9866c · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f9866c

Browse files
committed
[#6282] Removing PropertyPath as type and clarifying last sentence
1 parent 9d00f0b commit 2f9866c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

reference/forms/types/options/choice_label.rst.inc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ choice_label
44
.. versionadded:: 2.7
55
The ``choice_label`` option was introduced in Symfony 2.7.
66

7-
**type**: ``string``, ``bool``, ``callable`` or ``PropertyPath`` **default**: ``null``
7+
**type**: ``string``, ``callable`` or ``false`` **default**: ``null``
88

99
Normally, the array key of each item in the ``choices`` option is used as the
1010
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
5050
));
5151

5252
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.
53+
inputs. You can also return ``false`` from the callable to discard certain labels.

0 commit comments

Comments
 (0)
0