You are here

public static function CourseEventSubscriber::getSubscribedEvents in Course 8.2

Same name and namespace in other branches
  1. 8.3 src/EventSubscriber/CourseEventSubscriber.php \Drupal\course\EventSubscriber\CourseEventSubscriber::getSubscribedEvents()
  2. 3.x src/EventSubscriber/CourseEventSubscriber.php \Drupal\course\EventSubscriber\CourseEventSubscriber::getSubscribedEvents()

File

src/EventSubscriber/CourseEventSubscriber.php, line 14

Class

CourseEventSubscriber

Namespace

Drupal\course\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    // Set priority to 28 so we can get around the page cache.
    KernelEvents::REQUEST => [
      'onRequest',
      28,
    ],
  ];
}