Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc2e58d5

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 tagsDoc PR forsymfony/symfony#19790Commits-------0e0bdc3 [FrameworkBundle] add support for prioritizing form type extension tags
2 parentse714cda +0e0bdc3 commitc2e58d5

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)

[8]ページ先頭

©2009-2025 Movatter.jp