Skip to content

Commit 3f1a814

Browse files
Minor rewords
1 parent 1722628 commit 3f1a814

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

reference/forms/types/collection.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,9 @@ the empty values will be kept.
287287
to learn why this is necessary.
288288

289289
A value is deleted from the collection only if the normalized value is ``null``.
290-
However, you can also set the option value to a ``callable``, which will be called
291-
for each value in the submitted collection. The ``callable`` should return
292-
whether or not a value must be removed from the collection. For example::
290+
However, you can also set the option value to a callable, which will be executed
291+
for each value in the submitted collection. If the callable returns ``false``,
292+
the value is removed from the collection. For example::
293293

294294
use Symfony\Component\Form\Extension\Core\Type\CollectionType;
295295
// ...
@@ -301,11 +301,11 @@ whether or not a value must be removed from the collection. For example::
301301
},
302302
));
303303

304-
Using a ``callable`` is particularly useful in case of a compound form type
305-
which may have complex conditions for being empty.
304+
Using a callable is particularly useful in case of compound form types, which
305+
may define complex conditions for considering them empty.
306306

307307
.. versionadded:: 3.4
308-
Using a ``callable`` as an option value was introduced in Symfony 3.4.
308+
Using a callable for the ``delete_empty`` option was introduced in Symfony 3.4.
309309

310310
entry_options
311311
~~~~~~~~~~~~~

0 commit comments

Comments
 (0)