File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -122,16 +122,12 @@ convenient to extend instead from :class:`Symfony\\Component\\Form\\AbstractType
122
122
class PostalAddressType extends AbstractType
123
123
{
124
124
// ...
125
-
126
- public function getParent()
127
- {
128
- return FormType::class;
129
- }
130
125
}
131
126
132
- When a form type doesn't extend from another specific type, make it extend from
133
- the generic :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ Type\F ormType `,
134
- which is the parent of all the other types.
127
+ When a form type doesn't extend from another specific type, there's no need to
128
+ implement the ``getParent() `` method (Symfony will make the type extend from the
129
+ generic :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ Type\\ FormType `,
130
+ which is the parent of all the other types).
135
131
136
132
These are the most important methods that a form type class can define:
137
133
You can’t perform that action at this time.
0 commit comments