Skip to content

Commit 9e5909a

Browse files
committed
minor #8346 Update choice_attr.rst.inc (flip111)
This PR was merged into the 2.7 branch. Discussion ---------- Update choice_attr.rst.inc symfony/symfony#24088 Commits ------- 2691504 Update choice_attr.rst.inc
2 parents 7328eec + 2691504 commit 9e5909a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ choice_attr
66

77
**type**: ``array``, ``callable`` or ``string`` **default**: ``array()``
88

9-
Use this to add additional HTML attributes to each choice. This can be an array
10-
of attributes (if they are the same for each choice), a callable or a property path
9+
Use this to add additional HTML attributes to each choice. This can be
10+
an associative array where the keys match the choice keys and the values
11+
are the options for each choice, a callable or a property path
1112
(just like `choice_label`_).
1213

1314
If an array, the keys of the ``choices`` array must be used as keys::

0 commit comments

Comments
 (0)