You are here

public function FloodUnblockManager::getEvents in Flood control 2.0.x

Gets metadata about events.

Return value

array List of events, keyed by the Drupal flood event name containing type and label.

Overrides FloodUnblockManagerInterface::getEvents

2 calls to FloodUnblockManager::getEvents()
FloodUnblockManager::getEventLabel in src/FloodUnblockManager.php
Gets the label of an event.
FloodUnblockManager::getEventType in src/FloodUnblockManager.php
Gets the type of an event.

File

src/FloodUnblockManager.php, line 140

Class

FloodUnblockManager
Provides Flood Unblock actions.

Namespace

Drupal\flood_control

Code

public function getEvents() {
  return [
    'user.failed_login_ip' => [
      'type' => 'ip',
      'label' => $this
        ->t('User failed login IP'),
    ],
    'user.failed_login_user' => [
      'type' => 'user',
      'label' => $this
        ->t('User failed login user'),
    ],
    'user.http_login' => [
      'type' => 'user',
      'label' => $this
        ->t('User failed http login'),
    ],
    'user.password_request_ip' => [
      'type' => 'user',
      'label' => $this
        ->t('User failed password request IP'),
    ],
    'user.password_request_user' => [
      'type' => 'user',
      'label' => $this
        ->t('User failed password request user'),
    ],
  ];
}