Skip to content

Commit 8f8b1e8

Browse files
committed
Minor tweaks
1 parent 00ccab6 commit 8f8b1e8

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

reference/forms/types/options/priority.rst.inc

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ priority
33

44
**type**: ``integer`` **default**: ``0``
55

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.
6+
.. versionadded:: 5.3
7+
8+
The ``priority`` option was introduced in Symfony 5.3.
9+
10+
Fields are rendered in the same order as they are included in the form. This
11+
option changes the field rendering priority, allowing you to display fields
12+
earlier or later than their original order.
13+
14+
This option will affect the view order only. The higher this priority, the
15+
earlier the field will be rendered. Priority can also be negative and fields
16+
with the same priority will keep their original order.

0 commit comments

Comments
 (0)