We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ff2b45 commit 9ad6030Copy full SHA for 9ad6030
modules/custom_events/custom_events.module
@@ -16,5 +16,5 @@ function custom_events_user_login($account) {
16
17
// Get the event_dispatcher server and dispatch the event.
18
$event_dispatcher = \Drupal::service('event_dispatcher');
19
- $event_dispatcher->dispatch(UserLoginEvent::EVENT_NAME, $event);
+ $event_dispatcher->dispatch($event, UserLoginEvent::EVENT_NAME);
20
}
0 commit comments