function UserFloodSubscriber::getSubscribedEvents
Same name in other branches
- 9 core/modules/user/src/EventSubscriber/UserFloodSubscriber.php \Drupal\user\EventSubscriber\UserFloodSubscriber::getSubscribedEvents()
- 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\EventSubscriberCode
public static function getSubscribedEvents() : array {
$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.