Skip to content

Commit 9ad6030

Browse files
authored
Fixing order of dispatcher parameters.
1 parent 5ff2b45 commit 9ad6030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/custom_events/custom_events.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ function custom_events_user_login($account) {
1616

1717
// Get the event_dispatcher server and dispatch the event.
1818
$event_dispatcher = \Drupal::service('event_dispatcher');
19-
$event_dispatcher->dispatch(UserLoginEvent::EVENT_NAME, $event);
19+
$event_dispatcher->dispatch($event, UserLoginEvent::EVENT_NAME);
2020
}

0 commit comments

Comments
 (0)