Skip to content

Commit 2f23dba

Browse files
committed
language and locale inh options fixed
1 parent f7d9f4f commit 2f23dba

File tree

2 files changed

+35
-27
lines changed

2 files changed

+35
-27
lines changed

reference/forms/types/language.rst

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,34 +23,38 @@ you should just use the ``choice`` type directly.
2323
+-------------+------------------------------------------------------------------------+
2424
| Rendered as | can be various tags (see :ref:`forms-reference-choice-tags`) |
2525
+-------------+------------------------------------------------------------------------+
26-
| Options | - ``multiple`` |
27-
| | - ``expanded`` |
26+
| Inherited | - ``multiple`` |
27+
| options | - ``expanded`` |
2828
| | - ``preferred_choices`` |
2929
| | - ``required`` |
3030
| | - ``label`` |
3131
| | - ``read_only`` |
3232
| | - ``error_bubbling`` |
3333
+-------------+------------------------------------------------------------------------+
34-
| Parent type | :doc:`choice</reference/forms/types/choice>` |
34+
| Parent type | :doc:`choice</reference/forms/types/choice>`, field |
3535
+-------------+------------------------------------------------------------------------+
3636
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\LanguageType` |
3737
+-------------+------------------------------------------------------------------------+
3838

39-
Options
40-
-------
39+
Inherited options
40+
-----------------
41+
42+
These options are inherited from the parent ``choiceType`` class:
4143

4244
.. include:: /reference/forms/types/options/multiple.rst.inc
4345

4446
.. include:: /reference/forms/types/options/expanded.rst.inc
4547

4648
.. include:: /reference/forms/types/options/preferred_choices.rst.inc
4749

50+
.. include:: /reference/forms/types/options/error_bubbling.rst.inc
51+
52+
These options are inherited from the parent ``fieldType`` class:
53+
4854
.. include:: /reference/forms/types/options/required.rst.inc
4955

5056
.. include:: /reference/forms/types/options/label.rst.inc
5157

5258
.. include:: /reference/forms/types/options/read_only.rst.inc
5359

54-
.. include:: /reference/forms/types/options/error_bubbling.rst.inc
55-
5660
.. _`Locale::getDefault()`: http://php.net/manual/en/locale.getdefault.php

reference/forms/types/locale.rst

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,41 @@ Unlike the ``choice`` type, you don't need to specify a ``choices`` or
2121
of locales. You *can* specify either of these options manually, but then
2222
you should just use the ``choice`` type directly.
2323

24-
+-------------+----------------------------------------------------------------------+
25-
| Rendered as | can be various tags (see :ref:`forms-reference-choice-tags`) |
26-
+-------------+----------------------------------------------------------------------+
27-
| Options | - ``multiple`` |
28-
| | - ``expanded`` |
29-
| | - ``preferred_choices`` |
30-
| | - ``required`` |
31-
| | - ``label`` |
32-
| | - ``read_only`` |
33-
| | - ``error_bubbling`` |
34-
+-------------+----------------------------------------------------------------------+
35-
| Parent type | :doc:`choice</reference/forms/types/choice>` |
36-
+-------------+----------------------------------------------------------------------+
37-
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\LocaleType` |
38-
+-------------+----------------------------------------------------------------------+
39-
40-
Options
41-
-------
24+
+-------------+------------------------------------------------------------------------+
25+
| Rendered as | can be various tags (see :ref:`forms-reference-choice-tags`) |
26+
+-------------+------------------------------------------------------------------------+
27+
| Inherited | - ``multiple`` |
28+
| options | - ``expanded`` |
29+
| | - ``preferred_choices`` |
30+
| | - ``required`` |
31+
| | - ``label`` |
32+
| | - ``read_only`` |
33+
| | - ``error_bubbling`` |
34+
+-------------+------------------------------------------------------------------------+
35+
| Parent type | :doc:`choice</reference/forms/types/choice>`, field |
36+
+-------------+------------------------------------------------------------------------+
37+
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\LanguageType` |
38+
+-------------+------------------------------------------------------------------------+
39+
40+
Inherited options
41+
-----------------
42+
43+
These options are inherited from the parent ``choiceType`` class:
4244

4345
.. include:: /reference/forms/types/options/multiple.rst.inc
4446

4547
.. include:: /reference/forms/types/options/expanded.rst.inc
4648

4749
.. include:: /reference/forms/types/options/preferred_choices.rst.inc
4850

51+
.. include:: /reference/forms/types/options/error_bubbling.rst.inc
52+
53+
These options are inherited from the parent ``fieldType`` class:
54+
4955
.. include:: /reference/forms/types/options/required.rst.inc
5056

5157
.. include:: /reference/forms/types/options/label.rst.inc
5258

5359
.. include:: /reference/forms/types/options/read_only.rst.inc
5460

55-
.. include:: /reference/forms/types/options/error_bubbling.rst.inc
56-
5761
.. _`Locale::getDefault()`: http://php.net/manual/en/locale.getdefault.php

0 commit comments

Comments
 (0)