File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 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
131131
132132It can be used to:
133133
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;
135135* Add or remove form fields, before submitting the data to the form.
136136
137137:ref: `Form Events Information Table<component-form-event-table> `
@@ -303,7 +303,10 @@ callback for better readability::
303303 {
304304 $builder->add('username', 'text');
305305 $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+ );
307310 }
308311
309312 public function onPreSetData(FormEvent $event)
You can’t perform that action at this time.
0 commit comments