8000 [Form] Added docs for alpha3 option in CountryType and LanguageType by creiner · Pull Request #12441 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Form] Added docs for alpha3 option in CountryType and LanguageType #12441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[Form] Added docs for alpha3 option in CountryType and LanguageType
  • Loading branch information
creiner authored and javiereguiluz committed Oct 9, 2019
commit 377d71c60d3eea7579f4d18b730e3edfb0420ab8
3 changes: 3 additions & 0 deletions reference/forms/types/country.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ the option manually, but then you should just use the ``ChoiceType`` directly.
| Rendered as | can be various tags (see :ref:`forms-reference-choice-tags`) |
+-------------+-----------------------------------------------------------------------+
| Options | - `choice_translation_locale`_ |
| | - `alpha3`_ |
+-------------+-----------------------------------------------------------------------+
| Overridden | - `choices`_ |
| options | |
Expand Down Expand Up @@ -64,6 +65,8 @@ Field Options

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

.. include:: /reference/forms/types/options/alpha3.rst.inc

Overridden Options
------------------

Expand Down
3 changes: 3 additions & 0 deletions reference/forms/types/language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ manually, but then you should just use the ``ChoiceType`` directly.
| Rendered as | can be various tags (see :ref:`forms-reference-choice-tags`) |
+-------------+------------------------------------------------------------------------+
| Options | - `choice_translation_locale`_ |
| | - `alpha3`_ |
+-------------+------------------------------------------------------------------------+
| Overridden | - `choices`_ |
| options | |
Expand Down Expand Up @@ -66,6 +67,8 @@ Field Options

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

.. include:: /reference/forms/types/options/alpha3.rst.inc

Overridden Options
------------------

Expand Down
7 changes: 7 additions & 0 deletions reference/forms/types/options/alpha3.rst.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
alpha3
~~~~~~

**type**: ``boolean`` **default**: ``false``

This option determines if the choice values should be in the alpha3 instead
of the alpha2 format.
0