Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update form_events.rst #4031

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/form/form_events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Registering an event listener is very easy using the Form component.

For example, if you wish to register a function to the
``FormEvents::PRE_SUBMIT`` event, the following code lets you add a field,
depending on the request' values::
depending on the request values::

// ...

Expand Down Expand Up @@ -349,7 +349,7 @@ Event subscribers have different uses:

class AddEmailFieldListener implements EventSubscriberInterface
{
public function getSubscribedEvents()
public static function getSubscribedEvents()
{
return array(
FormEvents::PRE_SET_DATA => 'onPreSetData',
Expand Down