You are here

public static function UserFloodSubscriber::getSubscribedEvents in Drupal 9

File

core/modules/user/src/EventSubscriber/UserFloodSubscriber.php, line 36

Class

UserFloodSubscriber
Logs details of User Flood Control events.

Namespace

Drupal\user\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[UserEvents::FLOOD_BLOCKED_USER][] = [
    'blockedUser',
  ];
  $events[UserEvents::FLOOD_BLOCKED_IP][] = [
    'blockedIp',
  ];
  return $events;
}