File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ or an array (see `input`_).
27
27
| | - `seconds `_ |
28
28
| | - `weeks `_ |
29
29
| | - `input `_ |
30
+ | | - `labels `_ |
30
31
| | - `placeholder `_ |
31
32
| | - `widget `_ |
32
33
| | - `with_days `_ |
@@ -128,6 +129,28 @@ your underlying object. Valid values are:
128
129
The value that comes back from the form will also be normalized back into
129
130
this format.
130
131
132
+ labels
133
+ ~~~~~~
134
+
135
+ .. versionadded :: 3.3
136
+ The ``labels `` option was introduced in Symfony 3.3.
137
+
138
+ **type **: ``array `` **default **: (see below)
139
+
140
+ The labels displayed for each of the elements of this type. The default values
141
+ are ``null ``, so they display the "humanized version" of the child names (``Invert ``,
142
+ ``Years ``, etc.)::
143
+
144
+ 'labels' => array(
145
+ 'invert' => null,
146
+ 'years' => null,
147
+ 'months' => null,
148
+ 'days' => null,
149
+ 'hours' => null,
150
+ 'minutes' => null,
151
+ 'seconds' => null,
152
+ )
153
+
131
154
minutes
132
155
~~~~~~~
133
156
You can’t perform that action at this time.
0 commit comments