You are here

public static function RabbitHoleSubscriber::getSubscribedEvents in Rabbit Hole 2.x

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

File

src/EventSubscriber/RabbitHoleSubscriber.php, line 35

Class

RabbitHoleSubscriber
Class EventSubscriber.

Namespace

Drupal\rabbit_hole\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events['kernel.request'] = [
    'onRequest',
    28,
  ];
  $events['kernel.response'] = [
    'onResponse',
  ];
  return $events;
}