Skip to content

Commit 0e0bdc3

Browse files
dmaicherxabbuh
authored andcommitted
[FrameworkBundle] add support for prioritizing form type extension tags
1 parent f78d06b commit 0e0bdc3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

form/create_form_type_extension.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ The ``extended_type`` key of the tag is the type of field that this extension sh
128128
be applied to. In your case, as you want to extend the ``Symfony\Component\Form\Extension\Core\Type\FileType``
129129
field type, you will use that as the ``extended_type``.
130130

131+
.. tip::
132+
133+
There is an optional tag attribute called ``priority``, which
134+
defaults to ``0`` and controls the order in which the form
135+
type extensions are loaded (the higher the priority, the earlier
136+
an extension is loaded). This is useful when you need to guarantee
137+
that one extension is loaded before or after another extension.
138+
131139
Adding the extension Business Logic
132140
-----------------------------------
133141

0 commit comments

Comments
 (0)