You are here

public static function CourseContentEventSubscriber::getSubscribedEvents in Course 3.x

Same name and namespace in other branches
  1. 8.3 modules/course_content/src/EventSubscriber/CourseContentEventSubscriber.php \Drupal\course_content\EventSubscriber\CourseContentEventSubscriber::getSubscribedEvents()
  2. 8.2 modules/course_content/src/EventSubscriber/CourseContentEventSubscriber.php \Drupal\course_content\EventSubscriber\CourseContentEventSubscriber::getSubscribedEvents()

Set the priority to 28 so we run in time for the dynamic cache.

File

modules/course_content/src/EventSubscriber/CourseContentEventSubscriber.php, line 19

Class

CourseContentEventSubscriber

Namespace

Drupal\course_content\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    KernelEvents::REQUEST => [
      'onRequest',
      28,
    ],
  ];
}