function UserFloodSubscriber::getSubscribedEvents

Same name in other branches
  1. 10 core/modules/user/src/EventSubscriber/UserFloodSubscriber.php \Drupal\user\EventSubscriber\UserFloodSubscriber::getSubscribedEvents()
  2. 11.x core/modules/user/src/EventSubscriber/UserFloodSubscriber.php \Drupal\user\EventSubscriber\UserFloodSubscriber::getSubscribedEvents()

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.