File tree 1 file changed +11
-1
lines changed 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -144,13 +144,23 @@ These are the most important methods that a form type class can define:
144
144
145
145
``configureOptions() ``
146
146
It defines the options configurable when using the form type, which are also
147
- the options that can be used in ``buildForm() `` and ``buildView() `` methods.
147
+ the options that can be used in ``buildForm() `` and ``buildView() ``
148
+ methods. Options are inherited from parent types and parent type
149
+ extensions, but you can create any custom option you need.
148
150
149
151
``finishView() ``
150
152
When creating a form type that consists of many fields, this method allows
151
153
to modify the "view" of any of those fields. For any other use case, it's
152
154
recommended to use instead the ``buildView() `` method.
153
155
156
+ ``getParent() ``
157
+ It returns a form type class name that is defined as the parent. All
158
+ the other form type methods will be called with this parent type, and
159
+ all its type extensions, before calling the ones defined in your custom
160
+ type.
161
+ By default, all classes extend the ``AbstractType `` class, which
162
+ defines the ``FormType `` as the parent type.
163
+
154
164
Defining the Form Type
155
165
~~~~~~~~~~~~~~~~~~~~~~
156
166
You can’t perform that action at this time.
0 commit comments