Skip to content

Commit 454087d

Browse files
committed
Documenting form field priority option
1 parent b3690c8 commit 454087d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

reference/forms/types/form.rst

Lines 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
Lines 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)