Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f6123f1

Browse filesBrowse files
committed
bug #4031 Update form_events.rst (redstar504)
This PR was submitted for the 2.5 branch but it was merged into the 2.3 branch instead (closes #4031). Discussion ---------- Update form_events.rst EventSubscriberInterface::getSubscribedEvents() method is static. Commits ------- a716a28 Update form_events.rst 229cde3 Update form_events.rst
2 parents f5c2602 + d6c8431 commit f6123f1
Copy full SHA for f6123f1

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎components/form/form_events.rst

Copy file name to clipboardExpand all lines: components/form/form_events.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Registering an event listener is very easy using the Form component.
1414

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

1919
// ...
2020

@@ -343,7 +343,7 @@ Event subscribers have different uses:
343343
344344
class AddEmailFieldListener implements EventSubscriberInterface
345345
{
346-
public function getSubscribedEvents()
346+
public static function getSubscribedEvents()
347347
{
348348
return array(
349349
FormEvents::PRE_SET_DATA => 'onPreSetData',

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.