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

Appearance settings

Commit 00ccab6

Browse filesBrowse files
committed
minor symfony#15324 [Form] Documenting new priority option (yceruto)
This PR was merged into the 5.3-dev branch. Discussion ---------- [Form] Documenting new priority option PR: symfony/symfony#40690 Fix: symfony#15239 Commits ------- 454087d Documenting form field priority option
2 parents ac05a6e + 454087d commit 00ccab6
Copy full SHA for 00ccab6

File tree

Expand file treeCollapse file tree

2 files changed

+13
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+13
-0
lines changed

‎reference/forms/types/form.rst

Copy file name to clipboardExpand all lines: reference/forms/types/form.rst
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ on all types for which ``FormType`` is the parent.
4848
| | - `translation_domain`_ |
4949
| | - `label_translation_parameters`_ |
5050
| | - `attr_translation_parameters`_ |
51+
| | - `priority`_ |
5152
+---------------------------+--------------------------------------------------------------------+
5253
| Default invalid message | This value is not valid. |
5354
+---------------------------+--------------------------------------------------------------------+
@@ -189,3 +190,5 @@ of the form type tree (i.e. it cannot be used as a form type on its own).
189190
.. include:: /reference/forms/types/options/label_translation_parameters.rst.inc
190191

191192
.. include:: /reference/forms/types/options/attr_translation_parameters.rst.inc
193+
194+
.. include:: /reference/forms/types/options/priority.rst.inc
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
priority
2+
~~~~~~~~
3+
4+
**type**: ``integer`` **default**: ``0``
5+
6+
Allows you to set the field rendering priority. This option will affect
7+
the view order only, sorting all fields in order of importance instead of
8+
simply numerical order, i.e. fields with higher priority will be rendered
9+
first, fields with lower priority will be rendered last and fields with
10+
equal priority will keep the original order.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.