8000 Reworded the section about form overridding · symfony/symfony-docs@d5cd8d0 · GitHub
[go: up one dir, main page]

Skip to content

Commit d5cd8d0

Browse files
committed
Reworded the section about form overridding
1 parent 600d302 commit d5cd8d0

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

bundles/override.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,7 @@ associations. Learn more about this feature and its limitations in
7272
Forms
7373
-----
7474

75-
Form types are referred to by their fully-qualified class name::
76-
77-
$builder->add('name', CustomType::class);
78-
79-
This means that you cannot override this by creating a sub-class of ``CustomType``
80-
and registering it as a service and tagging it with ``form.type`` (you *could*
81-
do this in an earlier version).
82-
83-
Instead, you should use a "form type extension" to modify the existing form type.
75+
Existing form types can be modified defining "form type extensions".
8476
For more information, see :doc:`/form/create_form_type_extension`.
8577

8678
.. _override-validation:

0 commit comments

Comments
 (0)
0