Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions reference/forms/types/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ on all types for which ``FormType`` is the parent.
| | - `translation_domain`_ |
| | - `label_translation_parameters`_ |
| | - `attr_translation_parameters`_ |
| | - `priority`_ |
+---------------------------+--------------------------------------------------------------------+
| Default invalid message | This value is not valid. |
+---------------------------+--------------------------------------------------------------------+
Expand Down Expand Up @@ -189,3 +190,5 @@ of the form type tree (i.e. it cannot be used as a form type on its own).
.. include:: /reference/forms/types/options/label_translation_parameters.rst.inc

.. include:: /reference/forms/types/options/attr_translation_parameters.rst.inc

.. include:: /reference/forms/types/options/priority.rst.inc
10 changes: 10 additions & 0 deletions reference/forms/types/options/priority.rst.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
priority
~~~~~~~~

**type**: ``integer`` **default**: ``0``

Allows you to set the field rendering priority. This option will affect
the view order only, sorting all fields in order of importance instead of
simply numerical order, i.e. fields with higher priority will be rendered
first, fields with lower priority will be rendered last and fields with
equal priority will keep the original order.