Skip to content

Commit 229cde3

Browse files
committed
Update form_events.rst
EventSubscriberInterface::getSubscribedEvents() method is static.
1 parent 74c2e94 commit 229cde3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/form/form_events.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ Event subscribers have different uses:
349349
350350
class AddEmailFieldListener implements EventSubscriberInterface
351351
{
352-
public function getSubscribedEvents()
352+
public static function getSubscribedEvents()
353353
{
354354
return array(
355355
FormEvents::PRE_SET_DATA => 'onPreSetData',

0 commit comments

Comments
 (0)