static function AccessSubscriber::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/lib/Drupal/Core/EventSubscriber/AccessSubscriber.php, line 66
Contains Drupal\Core\EventSubscriber\AccessSubscriber.

Class

AccessSubscriber
Access subscriber for controller requests.

Namespace

Drupal\Core\EventSubscriber

Code

static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = array(
    'onKernelRequestAccessCheck',
    30,
  );

  // Setting very low priority to ensure access checks are run after alters.
  $events[RoutingEvents::ALTER][] = array(
    'onRoutingRouteAlterSetAccessCheck',
    0,
  );
  return $events;
}