function AccessRouteAlterSubscriber::getSubscribedEvents

Same name in other branches
  1. 10 core/modules/system/src/EventSubscriber/AccessRouteAlterSubscriber.php \Drupal\system\EventSubscriber\AccessRouteAlterSubscriber::getSubscribedEvents()

File

core/modules/system/src/EventSubscriber/AccessRouteAlterSubscriber.php, line 20

Class

AccessRouteAlterSubscriber
Alters routes to add necessary requirements.

Namespace

Drupal\system\EventSubscriber

Code

public static function getSubscribedEvents() : array {
    $events[RoutingEvents::ALTER][] = 'accessAdminMenuBlockPage';
    return $events;
}

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