File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ The ``FormEvents::PRE_SUBMIT`` event is dispatched at the beginning of the
131
131
132
132
It can be used to:
133
133
134
- * Change data from the request, before submitting the data to the form.
134
+ * Change data from the request, before submitting the data to the form;
135
135
* Add or remove form fields, before submitting the data to the form.
136
136
137
137
:ref: `Form Events Information Table<component-form-event-table> `
@@ -303,7 +303,10 @@ callback for better readability::
303
303
{
304
304
$builder->add('username', 'text');
305
305
$builder->add('show_email', 'checkbox');
306
- $builder->addEventListener(FormEvents::PRE_SET_DATA, array($this, 'onPreSetData'));
306
+ $builder->addEventListener(
307
+ FormEvents::PRE_SET_DATA,
308
+ array($this, 'onPreSetData')
309
+ );
307
310
}
308
311
309
312
public function onPreSetData(FormEvent $event)
You can’t perform that action at this time.
0 commit comments