Skip to content

Commit 01057ae

Browse files
committed
Reverted removal, removed API links instead
1 parent 0670f25 commit 01057ae

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

components/form/form_events.rst

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ The ``FormEvents::PRE_SET_DATA`` event is dispatched at the beginning of the
8383
.. sidebar:: ``FormEvents::PRE_SET_DATA`` in the Form component
8484

8585
The ``collection`` form type relies on the
86-
:class:`Symfony\\Component\\Form\\Extension\\Core\\EventListener\\ResizeFormListener`
86+
``Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener``
8787
subscriber, listening to the ``FormEvents::PRE_SET_DATA`` event in order
8888
to reorder the form's fields depending on the data from the pre-populated
8989
object, by removing and adding all form rows.
@@ -108,6 +108,13 @@ the form.
108108
| View data | Normalized data transformed using a view transformer |
109109
+-----------------+------------------------------------------------------+
110110

111+
.. sidebar:: ``FormEvents::POST_SET_DATA`` in the Form component
112+
113+
The ``Symfony\Component\Form\Extension\DataCollector\EventListener\DataCollectorListener``
114+
class is subscribed to listen to the ``FormEvents::POST_SET_DATA`` event
115+
in order to collect information about the forms from the denormalized
116+
model and view data.
117+
111118
2) Submitting a Form (``FormEvents::PRE_SUBMIT``, ``FormEvents::SUBMIT`` and ``FormEvents::POST_SUBMIT``)
112119
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
113120

@@ -145,10 +152,10 @@ It can be used to:
145152

146153
.. sidebar:: ``FormEvents::PRE_SUBMIT`` in the Form component
147154

148-
The :class:`Symfony\\Component\\Form\\Extension\\Core\\EventListener\\TrimListener`
155+
The ``Symfony\Component\Form\Extension\Core\EventListener\TrimListener``
149156
subscriber subscribes to the ``FormEvents::PRE_SUBMIT`` event in order to
150157
trim the request's data (for string values).
151-
The :class:`Symfony\\Component\\Form\\Extension\\Csrf\\EventListener\\CsrfValidationListener`
158+
The ``Symfony\Component\Form\Extension\Csrf\EventListener\CsrfValidationListener``
152159
subscriber subscribes to the ``FormEvents::PRE_SUBMIT`` event in order to
153160
validate the CSRF token.
154161

@@ -179,7 +186,7 @@ It can be used to change data from the normalized representation of the data.
179186

180187
.. sidebar:: ``FormEvents::SUBMIT`` in the Form component
181188

182-
The :class:`Symfony\\Component\\Form\\Extension\\Core\\EventListener\\ResizeFormListener`
189+
The ``Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener``
183190
subscribes to the ``FormEvents::SUBMIT`` event in order to remove the
184191
fields that need to be removed whenever manipulating a collection of forms
185192
for which ``allow_delete`` has been enabled.
@@ -211,7 +218,10 @@ It can be used to fetch data after denormalization.
211218

212219
.. sidebar:: ``FormEvents::POST_SUBMIT`` in the Form component
213220

214-
The :class:`Symfony\\Component\\Form\\Extension\\Validator\\EventListener\\ValidationListener`
221+
The ``Symfony\Component\Form\Extension\DataCollector\EventListener\DataCollectorListener``
222+
subscribes to the ``FormEvents::POST_SUBMIT`` event in order to collect
223+
information about the forms.
224+
The ``Symfony\Component\Form\Extension\Validator\EventListener\ValidationListener``
215225
subscribes to the ``FormEvents::POST_SUBMIT`` event in order to
216226
automatically validate the denormalized object, and update the normalized
217227
as well as the view's representations.

0 commit comments

Comments
 (0)