4
4
form Field Type
5
5
===============
6
6
7
- See :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ Type\\ FormType `.
8
-
9
7
The ``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
+ -------
11
48
12
49
.. include :: /reference/forms/types/options/data.rst.inc
13
50
@@ -25,8 +62,6 @@ on all fields.
25
62
26
63
.. include :: /reference/forms/types/options/required.rst.inc
27
64
28
- .. include :: /reference/forms/types/options/label.rst.inc
29
-
30
65
.. include :: /reference/forms/types/options/label_attr.rst.inc
31
66
32
67
.. include :: /reference/forms/types/options/constraints.rst.inc
@@ -35,20 +70,12 @@ on all fields.
35
70
36
71
.. include :: /reference/forms/types/options/read_only.rst.inc
37
72
38
- .. include :: /reference/forms/types/options/disabled.rst.inc
39
-
40
73
.. include :: /reference/forms/types/options/trim.rst.inc
41
74
42
75
.. include :: /reference/forms/types/options/mapped.rst.inc
43
76
44
77
.. include :: /reference/forms/types/options/property_path.rst.inc
45
78
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
-
52
79
.. _reference-form-option-max_length :
53
80
54
81
.. include :: /reference/forms/types/options/max_length.rst.inc
@@ -72,3 +99,28 @@ on all fields.
72
99
.. _reference-form-option-pattern :
73
100
74
101
.. 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