Skip to content

Commit a988aba

Browse files
committed
Merge pull request symfony#3388 from xabbuh/issue-3337-tweaks
[Reference][Forms] tweaks to label_attr description
2 parents 284cee8 + 1eb93ec commit a988aba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
label_attr
2-
~~~~~
2+
~~~~~~~~~~
33

44
**type**: ``array`` **default**: ``array()``
55

6-
Sets the html attributes for the ``<label>`` element, which will be used when
6+
Sets the html attributes for the ``<label>`` element, which will be used when
77
rendering the label for the field. It's an associative array with HTML attribute
88
as a key. This attributes can also be directly set inside the template:
99

@@ -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('class' => 'CUSTOM_LABEL_CLASS')
2222
);

0 commit comments

Comments
 (0)