8000 minor #12441 [Form] Added docs for alpha3 option in CountryType and L… · symfony/symfony-docs@8b33bc5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8b33bc5

Browse files
committed
minor #12441 [Form] Added docs for alpha3 option in CountryType and LanguageType (creiner)
This PR was squashed before being merged into the 4.4 branch (closes #12441). Discussion ---------- [Form] Added docs for alpha3 option in CountryType and LanguageType Here are the documentation parts for the PR: symfony/symfony#33791 Hope I didn't make any mistakes.. :-) Commits ------- 377d71c [Form] Added docs for alpha3 option in CountryType and LanguageType
2 parents b8a50ae + 377d71c commit 8b33bc5

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

reference/forms/types/country.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ the option manually, but then you should just use the ``ChoiceType`` directly.
2222
| Rendered as | can be various tags (see :ref:`forms-reference-choice-tags`) |
2323
+-------------+-----------------------------------------------------------------------+
2424
| Options | - `choice_translation_locale`_ |
25+
| | - `alpha3`_ |
2526
+-------------+-----------------------------------------------------------------------+
2627
| Overridden | - `choices`_ |
2728
| options | |
@@ -64,6 +65,8 @@ Field Options
6465

6566
.. include:: /reference/forms/types/options/choice_translation_locale.rst.inc
6667

68+
.. include:: /reference/forms/types/options/alpha3.rst.inc
69+
6770
Overridden Options
6871
------------------
6972

reference/forms/types/language.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ manually, but then you should just use the ``ChoiceType`` directly.
2424
| Rendered as | can be various tags (see :ref:`forms-reference-choice-tags`) |
2525
+-------------+------------------------------------------------------------------------+
2626
| Options | - `choice_translation_locale`_ |
27+
| | - `alpha3`_ |
2728
+-------------+------------------------------------------------------------------------+
2829
| Overridden | - `choices`_ |
2930
| options | |
@@ -66,6 +67,8 @@ Field Options
6667

6768
.. include:: /reference/forms/types/options/choice_translation_locale.rst.inc
6869

70+
.. include:: /reference/forms/types/options/alpha3.rst.inc
71+
6972
Overridden Options
7073
------------------
7174

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
alpha3
2+
~~~~~~
3+
4+
**type**: ``boolean`` **default**: ``false``
5+
6+
This option determines if the choice values should be in the alpha3 instead
7+
of the alpha2 format.

0 commit comments

Comments
 (0)
0