You are here

public static function DenyAccessSubscriber::getSubscribedEvents in Acquia Content Hub 8.2

Overrides RouteSubscriberBase::getSubscribedEvents

File

modules/acquia_contenthub_preview/src/Routing/DenyAccessSubscriber.php, line 17

Class

DenyAccessSubscriber
Restricts the access to the general media page.

Namespace

Drupal\acquia_contenthub_preview\Routing

Code

public static function getSubscribedEvents() {
  $events[RoutingEvents::ALTER][] = [
    'onAlterRoutes',
    -1001,
  ];
  return $events;
}