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.
2 parents 284cee8 + 1eb93ec commit a988abaCopy full SHA for a988aba
reference/forms/types/options/label_attr.rst.inc
@@ -1,9 +1,9 @@
1
label_attr
2
-~~~~~
+~~~~~~~~~~
3
4
**type**: ``array`` **default**: ``array()``
5
6
-Sets the html attributes for the ``<label>`` element, which will be used when
+Sets the html attributes for the ``<label>`` element, which will be used when
7
rendering the label for the field. It's an associative array with HTML attribute
8
as a key. This attributes can also be directly set inside the template:
9
@@ -18,5 +18,5 @@ as a key. This attributes can also be directly set inside the template:
18
echo $view['form']->label(
19
$form['name'],
20
'Your name',
21
- array('class', 'CUSTOM_LABEL_CLASS')
+ array('class' => 'CUSTOM_LABEL_CLASS')
22
);
0 commit comments