We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94ba150 commit e33b5b2Copy full SHA for e33b5b2
form/data_transformers.rst
@@ -291,9 +291,10 @@ and type-hint the new class::
291
// ...
292
}
293
294
-Instead of defining the same ``invalid_message`` every time the form type is
295
-used, you can set the end-user error message in the data transformer using the
296
-``setInvalidMessage()`` method::
+Whenever the transformer throws an exception, the ``invalid_message`` is shown
+to the user. Instead of showing the same message every time, you can set the
+end-user error message in the data transformer using the
297
+``setInvalidMessage()`` method. It also allows you to include user values::
298
299
// src/Form/DataTransformer/IssueToNumberTransformer.php
300
namespace App\Form\DataTransformer;
0 commit comments