@@ -83,7 +83,7 @@ The ``FormEvents::PRE_SET_DATA`` event is dispatched at the beginning of the
83
83
.. sidebar :: ``FormEvents::PRE_SET_DATA`` in the Form component
84
84
85
85
The ``collection `` form type relies on the
86
- :class: ` Symfony\\ Component\\ Form\\ Extension\\ Core\\ EventListener\\ ResizeFormListener `
86
+ `` Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener ` `
87
87
subscriber, listening to the ``FormEvents::PRE_SET_DATA `` event in order
88
88
to reorder the form's fields depending on the data from the pre-populated
89
89
object, by removing and adding all form rows.
@@ -108,6 +108,13 @@ the form.
108
108
| View data | Normalized data transformed using a view transformer |
109
109
+-----------------+------------------------------------------------------+
110
110
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
+
111
118
2) Submitting a Form (``FormEvents::PRE_SUBMIT ``, ``FormEvents::SUBMIT `` and ``FormEvents::POST_SUBMIT ``)
112
119
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
113
120
@@ -145,10 +152,10 @@ It can be used to:
145
152
146
153
.. sidebar :: ``FormEvents::PRE_SUBMIT`` in the Form component
147
154
148
- The :class: ` Symfony\\ Component\\ Form\\ Extension\\ Core\\ EventListener\\ TrimListener `
155
+ The `` Symfony\Component\Form\Extension\Core\EventListener\TrimListener ` `
149
156
subscriber subscribes to the ``FormEvents::PRE_SUBMIT `` event in order to
150
157
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 ` `
152
159
subscriber subscribes to the ``FormEvents::PRE_SUBMIT `` event in order to
153
160
validate the CSRF token.
154
161
@@ -179,7 +186,7 @@ It can be used to change data from the normalized representation of the data.
179
186
180
187
.. sidebar :: ``FormEvents::SUBMIT`` in the Form component
181
188
182
- The :class: ` Symfony\\ Component\\ Form\\ Extension\\ Core\\ EventListener\\ ResizeFormListener `
189
+ The `` Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener ` `
183
190
subscribes to the ``FormEvents::SUBMIT `` event in order to remove the
184
191
fields that need to be removed whenever manipulating a collection of forms
185
192
for which ``allow_delete `` has been enabled.
@@ -211,7 +218,10 @@ It can be used to fetch data after denormalization.
211
218
212
219
.. sidebar :: ``FormEvents::POST_SUBMIT`` in the Form component
213
220
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 ``
215
225
subscribes to the ``FormEvents::POST_SUBMIT `` event in order to
216
226
automatically validate the denormalized object, and update the normalized
217
227
as well as the view's representations.
0 commit comments