You are here

public static function PageNotFoundEventSubscriber::getSubscribedEvents in Apigee API Catalog 8.2

Same name and namespace in other branches
  1. 8 src/EventSubscriber/PageNotFoundEventSubscriber.php \Drupal\apigee_api_catalog\EventSubscriber\PageNotFoundEventSubscriber::getSubscribedEvents()

File

src/EventSubscriber/PageNotFoundEventSubscriber.php, line 89

Class

PageNotFoundEventSubscriber
Handles not found exceptions for apidoc entities.

Namespace

Drupal\apigee_api_catalog\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[KernelEvents::EXCEPTION][] = [
    'onNotFoundException',
    0,
  ];
  return $events;
}