Skip to content

Commit b05fda5

Browse files
committed
minor #18455 Fix incorrect placement of is_empty_callback (janklan)
This PR was submitted for the 6.3 branch but it was merged into the 5.4 branch instead. Discussion ---------- Fix incorrect placement of `is_empty_callback` I think the `is_empty_callback` placement is wrong in [6.3 docs](https://symfony.com/doc/current/reference/forms/types/form.html#empty-data). This PR fixes it. ![image](https://github.com/symfony/symfony-docs/assets/5463371/88af4062-a8ee-4132-ac93-83d3fb154ac7) Commits ------- 77c98fe Fix incorrect placement of is_empty_callback
2 parents 0e112e5 + 77c98fe commit b05fda5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

reference/forms/types/form.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,17 @@ The actual default value of this option depends on other field options:
6161
* If ``data_class`` is not set and ``compound`` is ``false``, then ``''``
6262
(empty string).
6363

64+
.. include:: /reference/forms/types/options/empty_data_description.rst.inc
65+
66+
.. _reference-form-option-error-bubbling:
67+
6468
``is_empty_callback``
6569
~~~~~~~~~~~~~~~~~~~~~
6670

6771
**type**: ``callable`` **default**: ``null``
6872

6973
This callable takes form data and returns whether value is considered empty.
7074

71-
.. include:: /reference/forms/types/options/empty_data_description.rst.inc
72-
73-
.. _reference-form-option-error-bubbling:
7475

7576
.. include:: /reference/forms/types/options/error_bubbling.rst.inc
7677

0 commit comments

Comments
 (0)