Skip to content

Commit 0723043

Browse files
Fix wrong key name
1 parent 7ea53a3 commit 0723043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ If an array, the keys of the ``choices`` array must be used as keys::
4949

5050
// ...
5151
$builder->add('choices', ChoiceType::class, [
52-
'choice_label' => ChoiceList::attr($this, function (?Category $category) {
52+
'choice_attr' => ChoiceList::attr($this, function (?Category $category) {
5353
return $category ? ['data-uuid' => $category->getUuid()] : [];
5454
}),
5555
]);

0 commit comments

Comments
 (0)