You are here

public static function StaticPageSubscriber::getSubscribedEvents in Static Page 8

File

src/EventSubscriber/StaticPageSubscriber.php, line 46

Class

StaticPageSubscriber
Static Page subscriber for controller requests.

Namespace

Drupal\static_page\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = [
    'onRequest',
  ];

  // $events[KernelEvents::RESPONSE][] = array('onResponse');
  return $events;
}