Skip to content

Commit 3fe41fd

Browse files
committed
Misc changes
| Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3 | Fixed tickets |
1 parent 3f24f8e commit 3fe41fd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/form/form_events.rst

+5-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ The ``FormEvents::PRE_SUBMIT`` event is dispatched at the beginning of the
131131

132132
It 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)

0 commit comments

Comments
 (0)