10000 minor #8223 Documentation input+regions options in TimezoneType (ro0N… · symfony/symfony-docs@63d3090 · GitHub
[go: up one dir, main page]

Skip to content

Commit 63d3090

Browse files
committed
minor #8223 Documentation input+regions options in TimezoneType (ro0NL, javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- Documentation input+regions options in TimezoneType See symfony/symfony#23648 Commits ------- 99f5f3e Minor typo d6611eb Update timezone.rst de490ca Update timezone.rst
2 parents d5e4175 + 99f5f3e commit 63d3090

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

reference/forms/types/timezone.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ manually, but then you should just use the ``ChoiceType`` directly.
1717
+-------------+------------------------------------------------------------------------+
1818
| Rendered as | can be various tags (see :ref:`forms-reference-choice-tags`) |
1919
+-------------+------------------------------------------------------------------------+
20+
| Options | - `input`_ |
21+
| | - `regions`_ |
22+
+-------------+------------------------------------------------------------------------+
2023
| Overridden | - `choices`_ |
2124
| options | |
2225
+-------------+------------------------------------------------------------------------+
@@ -45,6 +48,27 @@ manually, but then you should just use the ``ChoiceType`` directly.
4548
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\TimezoneType` |
4649
+-------------+------------------------------------------------------------------------+
4750

51+
Field Options
52+
-------------
53+
54+
input
55+
~~~~~
56+
57+
**type**: ``string`` **default**: ``string``
58+
59+
The format of the *input* data - i.e. the format that the timezone is stored
60+
on your underlying object. Valid values are:
61+
62+
* ``string`` (e.g. ``America/New_York``)
63+
* ``datetimezone`` (a ``DateTimeZone`` object)
64+
65+
regions
66+
~~~~~~~
67+
68+
**type**: ``int`` **default**: ``\DateTimeZone::ALL``
69+
70+
The available regions in the timezone choice list. For example: ``DateTimeZone::AMERICA | DateTimeZone::EUROPE``
71+
4872
Overridden Options
4973
------------------
5074

0 commit comments

Comments
 (0)
0