@@ -62,8 +62,8 @@ The ``FormEvents::PRE_SET_DATA`` event is dispatched at the beginning of the
62
62
:ref: `Form Events Information Table<component-form-event-table> `
63
63
64
64
+-----------------+-----------+
65
- | ** Data type ** | ** Value ** |
66
- +-----------------+----------- +
65
+ | Data type | Value |
66
+ +=================+=========== +
67
67
| Model data | ``null `` |
68
68
+-----------------+-----------+
69
69
| Normalized data | ``null `` |
@@ -99,8 +99,8 @@ the form.
99
99
:ref: `Form Events Information Table<component-form-event-table> `
100
100
101
101
+-----------------+------------------------------------------------------+
102
- | ** Data type ** | ** Value ** |
103
- +-----------------+------------------------------------------------------ +
102
+ | Data type | Value |
103
+ +=================+====================================================== +
104
104
| Model data | Model data injected into ``setData() `` |
105
105
+-----------------+------------------------------------------------------+
106
106
| Normalized data | Model data transformed using a model transformer |
@@ -110,6 +110,9 @@ the form.
110
110
111
111
.. sidebar :: ``FormEvents::POST_SET_DATA`` in the Form component
112
112
113
+ .. versionadded :: 2.4
114
+ The data collector extension was introduced in Symfony 2.4.
115
+
113
116
The :class: `Symfony\\ Component\\ Form\\ Extension\\ DataCollector\\ EventListener\\ DataCollectorListener `
114
117
class is subscribed to listen to the ``FormEvents::POST_SET_DATA `` event
115
118
in order to collect information about the forms from the denormalized
@@ -141,8 +144,8 @@ It can be used to:
141
144
:ref: `Form Events Information Table<component-form-event-table> `
142
145
143
146
+-----------------+------------------------------------------+
144
- | ** Data type ** | ** Value ** |
145
- +-----------------+------------------------------------------ +
147
+ | Data type | Value |
148
+ +=================+========================================== +
146
149
| Model data | Same as in ``FormEvents::POST_SET_DATA `` |
147
150
+-----------------+------------------------------------------+
148
151
| Normalized data | Same as in ``FormEvents::POST_SET_DATA `` |
@@ -171,8 +174,8 @@ It can be used to change data from the normalized representation of the data.
171
174
:ref: `Form Events Information Table<component-form-event-table> `
172
175
173
176
+-----------------+-------------------------------------------------------------------------------------+
174
- | ** Data type ** | ** Value ** |
175
- +-----------------+------------------------------------------------------------------------------------- +
177
+ | Data type | Value |
178
+ +=================+===================================================================================== +
176
179
| Model data | Same as in ``FormEvents::POST_SET_DATA `` |
177
180
+-----------------+-------------------------------------------------------------------------------------+
178
181
| Normalized data | Data from the request reverse-transformed from the request using a view transformer |
@@ -203,8 +206,8 @@ It can be used to fetch data after denormalization.
203
206
:ref: `Form Events Information Table<component-form-event-table> `
204
207
205
208
+-----------------+---------------------------------------------------------------+
206
- | ** Data type ** | ** Value ** |
207
- +-----------------+--------------------------------------------------------------- +
209
+ | Data type | Value |
210
+ +=================+=============================================================== +
208
211
| Model data | Normalized data reverse-transformed using a model transformer |
209
212
+-----------------+---------------------------------------------------------------+
210
213
| Normalized data | Same as in ``FormEvents::POST_SUBMIT `` |
@@ -218,6 +221,9 @@ It can be used to fetch data after denormalization.
218
221
219
222
.. sidebar :: ``FormEvents::POST_SUBMIT`` in the Form component
220
223
224
+ .. versionadded :: 2.4
225
+ The data collector extension was introduced in Symfony 2.4.
226
+
221
227
The :class: `Symfony\\ Component\\ Form\\ Extension\\ DataCollector\\ EventListener\\ DataCollectorListener `
222
228
subscribes to the ``FormEvents::POST_SUBMIT `` event in order to collect
223
229
information about the forms.
@@ -242,19 +248,19 @@ processed.
242
248
243
249
.. _component-form-event-table :
244
250
245
- +--------------------+-------------------------------+------------------+
246
- | ** Name ** | ``FormEvents `` ** Constant ** | ** Event's data ** |
247
- +--------------------+-------------------------------+------------------ +
248
- | form.pre_set_data | ``FormEvents::PRE_SET_DATA `` | Model data |
249
- +--------------------+-------------------------------+------------------+
250
- | form.post_set_data | ``FormEvents::POST_SET_DATA `` | Model data |
251
- +--------------------+-------------------------------+------------------+
252
- | form.pre_bind | ``FormEvents::PRE_SUBMIT `` | Request data |
253
- +--------------------+-------------------------------+------------------+
254
- | form.bind | ``FormEvents::SUBMIT `` | Normalized data |
255
- +--------------------+-------------------------------+------------------+
256
- | form.post_bind | ``FormEvents::POST_SUBMIT `` | View data |
257
- +--------------------+-------------------------------+------------------+
251
+ +------------------------ +-------------------------------+------------------+
252
+ | Name | ``FormEvents `` Constant | Event's data |
253
+ +========================+===============================+================== +
254
+ | `` form.pre_set_data `` | ``FormEvents::PRE_SET_DATA `` | Model data |
255
+ +------------------------ +-------------------------------+------------------+
256
+ | `` form.post_set_data `` | ``FormEvents::POST_SET_DATA `` | Model data |
257
+ +------------------------ +-------------------------------+------------------+
258
+ | `` form.pre_bind `` | ``FormEvents::PRE_SUBMIT `` | Request data |
259
+ +------------------------ +-------------------------------+------------------+
260
+ | `` form.bind `` | ``FormEvents::SUBMIT `` | Normalized data |
261
+ +------------------------ +-------------------------------+------------------+
262
+ | `` form.post_bind `` | ``FormEvents::POST_SUBMIT `` | View data |
263
+ +------------------------ +-------------------------------+------------------+
258
264
259
265
.. versionadded :: 2.3
260
266
0 commit comments