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 7ea53a3 commit 0723043Copy full SHA for 0723043
reference/forms/types/options/choice_attr.rst.inc
@@ -49,7 +49,7 @@ If an array, the keys of the ``choices`` array must be used as keys::
49
50
// ...
51
$builder->add('choices', ChoiceType::class, [
52
- 'choice_label' => ChoiceList::attr($this, function (?Category $category) {
+ 'choice_attr' => ChoiceList::attr($this, function (?Category $category) {
53
return $category ? ['data-uuid' => $category->getUuid()] : [];
54
}),
55
]);
0 commit comments