Skip to content

Commit d91396b

Browse files
committed
minor #19920 [Form] Move some docs from the Choice constraint to the ChoiceType (javiereguiluz)
This PR was merged into the 7.1 branch. Discussion ---------- [Form] Move some docs from the Choice constraint to the ChoiceType Spotted while preparing today's blog post: https://symfony.com/blog/new-in-symfony-7-1-misc-improvements Commits ------- f6a398b Move some docs from the Choice constraint to the ChoiceType
2 parents d5901c3 + f6a398b commit d91396b

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

reference/constraints/Choice.rst

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -389,29 +389,3 @@ Parameter Description
389389
=============== ==============================================================
390390

391391
.. include:: /reference/constraints/_payload-option.rst.inc
392-
393-
``separator``
394-
~~~~~~~~~~~~~
395-
396-
**type**: ``string`` **default**: ``-------------------``
397-
398-
This option allows you to customize the visual separator shown after the preferred
399-
choices. You can use HTML elements like ``<hr>`` to display a more modern separator,
400-
but you'll also need to set the `separator_html`_ option to ``true``.
401-
402-
.. versionadded:: 7.1
403-
404-
The ``separator`` option was introduced in Symfony 7.1.
405-
406-
``separator_html``
407-
~~~~~~~~~~~~~~~~~~
408-
409-
**type**: ``boolean`` **default**: ``false``
410-
411-
If this option is true, the `separator`_ option will be displayed as HTML instead
412-
of text. This is useful when using HTML elements (e.g. ``<hr>``) as a more modern
413-
visual separator.
414-
415-
.. versionadded:: 7.1
416-
417-
The ``separator_html`` option was introduced in Symfony 7.1.

reference/forms/types/choice.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,32 @@ correct types will be assigned to the model.
202202

203203
.. include:: /reference/forms/types/options/preferred_choices.rst.inc
204204

205+
``separator``
206+
~~~~~~~~~~~~~
207+
208+
**type**: ``string`` **default**: ``-------------------``
209+
210+
This option allows you to customize the visual separator shown after the preferred
211+
choices. You can use HTML elements like ``<hr>`` to display a more modern separator,
212+
but you'll also need to set the `separator_html`_ option to ``true``.
213+
214+
.. versionadded:: 7.1
215+
216+
The ``separator`` option was introduced in Symfony 7.1.
217+
218+
``separator_html``
219+
~~~~~~~~~~~~~~~~~~
220+
221+
**type**: ``boolean`` **default**: ``false``
222+
223+
If this option is true, the `separator`_ option will be displayed as HTML instead
224+
of text. This is useful when using HTML elements (e.g. ``<hr>``) as a more modern
225+
visual separator.
226+
227+
.. versionadded:: 7.1
228+
229+
The ``separator_html`` option was introduced in Symfony 7.1.
230+
205231
Overridden Options
206232
------------------
207233

0 commit comments

Comments
 (0)