Skip to content

Commit c0ba800

Browse files
committed
minor #10365 Use cross references for internal links (javiereguiluz)
This PR was merged into the 2.8 branch. Discussion ---------- Use cross references for internal links This PR updates the internal links of #10331. Commits ------- 8e41b98 Use cross references for internal links
2 parents b9477a7 + 8e41b98 commit c0ba800

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

best_practices/forms.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,10 @@ view layer:
148148
Validation
149149
----------
150150

151-
The `constraints`_ option allows you to attach `validation constraints`_ to any
152-
form field. However, doing that prevents the validation from being reused in
153-
other forms or other places where the mapped object is used.
151+
The :ref:`constraints <reference-form-option-constraints>` option allows you to
152+
attach :doc:`validation constraints </reference/constraints>` to any form field.
153+
However, doing that prevents the validation from being reused in other forms or
154+
other places where the mapped object is used.
154155

155156
.. best-practice::
156157

@@ -235,6 +236,3 @@ like the form is *always* processed (even on the GET request).
235236
----
236237

237238
Next: :doc:`/best_practices/i18n`
238-
239-
.. _`constraints`: https://symfony.com/doc/current/reference/forms/types/form.html#constraints
240-
.. _`validation constraints`: https://symfony.com/doc/current/reference/constraints.html

reference/forms/types/form.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ option on the form.
7373

7474
.. include:: /reference/forms/types/options/compound.rst.inc
7575

76+
.. _reference-form-option-constraints:
77+
7678
.. include:: /reference/forms/types/options/constraints.rst.inc
7779

7880
.. include:: /reference/forms/types/options/data.rst.inc

0 commit comments

Comments
 (0)