static function BanSubscriber::getSubscribedEvents

Registers the methods in this class that should be listeners.

Return value

array An array of event listener definitions.

Overrides EventSubscriberInterface::getSubscribedEvents

File

drupal/core/modules/ban/lib/Drupal/ban/EventSubscriber/BanSubscriber.php, line 59
Definition of Drupal\ban\EventSubscriber\BanSubscriber.

Class

BanSubscriber
Ban subscriber for controller requests.

Namespace

Drupal\ban\EventSubscriber

Code

static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = array(
    'onKernelRequestBannedIpCheck',
    40,
  );
  return $events;
}