Skip to content

[Form] Documenting new priority option #15324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2021
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.