Skip to content

Commit c2e58d5

Browse files
committed
feature #6958 [FrameworkBundle] add support for prioritizing form type extension tags (dmaicher)
This PR was squashed before being merged into the master branch (closes #6958). Discussion ---------- [FrameworkBundle] add support for prioritizing form type extension tags Doc PR for symfony/symfony#19790 Commits ------- 0e0bdc3 [FrameworkBundle] add support for prioritizing form type extension tags
2 parents e714cda + 0e0bdc3 commit c2e58d5

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)