44form Field Type
55===============
66
7- See :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ Type\\ FormType `.
8-
97The ``form `` type predefines a couple of options that are then available
10- on all fields.
8+ on all types for which ``form `` is the parent type.
9+
10+ +-----------+--------------------------------------------------------------------+
11+ | Options | - `compound `_ |
12+ | | - `data `_ |
13+ | | - `data_class `_ |
14+ | | - `empty_data `_ |
15+ | | - `required `_ |
16+ | | - `label_attr `_ |
17+ | | - `constraints `_ |
18+ | | - `cascade_validation `_ |
19+ | | - `read_only `_ |
20+ | | - `trim `_ |
21+ | | - `mapped `_ |
22+ | | - `property_path `_ |
23+ | | - `max_length `_ |
24+ | | - `by_reference `_ |
25+ | | - `error_bubbling `_ |
26+ | | - `inherit_data `_ |
27+ | | - `error_mapping `_ |
28+ | | - `invalid_message `_ |
29+ | | - `invalid_message_parameters `_ |
30+ | | - `extra_fields_message `_ |
31+ | | - `post_max_size_message `_ |
32+ | | - `pattern `_ |
33+ +-----------+--------------------------------------------------------------------+
34+ | Inherited | - `block_name `_ |
35+ | options | - `disabled `_ |
36+ | | - `label `_ |
37+ | | - `attr `_ |
38+ | | - `translation_domain `_ |
39+ | | - `auto_initialize `_ |
40+ +-----------+--------------------------------------------------------------------+
41+ | Parent | none |
42+ +-----------+--------------------------------------------------------------------+
43+ | Class | :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ Type\\ FormType ` |
44+ +-----------+--------------------------------------------------------------------+
45+
46+ Options
47+ -------
1148
1249.. include :: /reference/forms/types/options/data.rst.inc
1350
@@ -25,8 +62,6 @@ on all fields.
2562
2663.. include :: /reference/forms/types/options/required.rst.inc
2764
28- .. include :: /reference/forms/types/options/label.rst.inc
29-
3065.. include :: /reference/forms/types/options/label_attr.rst.inc
3166
3267.. include :: /reference/forms/types/options/constraints.rst.inc
@@ -35,20 +70,12 @@ on all fields.
3570
3671.. include :: /reference/forms/types/options/read_only.rst.inc
3772
38- .. include :: /reference/forms/types/options/disabled.rst.inc
39-
4073.. include :: /reference/forms/types/options/trim.rst.inc
4174
4275.. include :: /reference/forms/types/options/mapped.rst.inc
4376
4477.. include :: /reference/forms/types/options/property_path.rst.inc
4578
46- .. include :: /reference/forms/types/options/attr.rst.inc
47-
48- .. include :: /reference/forms/types/options/translation_domain.rst.inc
49-
50- .. include :: /reference/forms/types/options/block_name.rst.inc
51-
5279.. _reference-form-option-max_length :
5380
5481.. include :: /reference/forms/types/options/max_length.rst.inc
@@ -72,3 +99,28 @@ on all fields.
7299.. _reference-form-option-pattern :
73100
74101.. include :: /reference/forms/types/options/pattern.rst.inc
102+
103+ .. include :: /reference/forms/types/options/action.rst.inc
104+
105+ .. include :: /reference/forms/types/options/method.rst.inc
106+
107+ Inherited options
108+ -----------------
109+
110+ The following options are defined in the
111+ :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ Type\\ BaseType ` class.
112+ The ``BaseType `` class is the parent class for both the ``form `` type and
113+ the :doc: `button type </reference/forms/types/button >`, but it is not part
114+ of the form type tree (i.e. it can not be used as a form type on its own).
115+
116+ .. include :: /reference/forms/types/options/block_name.rst.inc
117+
118+ .. include :: /reference/forms/types/options/disabled.rst.inc
119+
120+ .. include :: /reference/forms/types/options/label.rst.inc
121+
122+ .. include :: /reference/forms/types/options/attr.rst.inc
123+
124+ .. include :: /reference/forms/types/options/translation_domain.rst.inc
125+
126+ .. include :: /reference/forms/types/options/auto_initialize.rst.inc
0 commit comments