File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -287,9 +287,9 @@ the empty values will be kept.
287287 to learn why this is necessary.
288288
289289A 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
310310entry_options
311311~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments