Skip to content

Commit 82c1db5

Browse files
committed
[symfony#3388] Fix thanks to @dorians
1 parent a988aba commit 82c1db5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ as a key. This attributes can also be directly set inside the template:
1818
echo $view['form']->label(
1919
$form['name'],
2020
'Your name',
21-
array('class' => 'CUSTOM_LABEL_CLASS')
21+
array('label_attr' => array('class' => 'CUSTOM_LABEL_CLASS'))
2222
);

0 commit comments

Comments
 (0)