You are here

public static function ThemeInfoRebuildSubscriber::getSubscribedEvents in Devel 8

Same name and namespace in other branches
  1. 8.3 src/EventSubscriber/ThemeInfoRebuildSubscriber.php \Drupal\devel\EventSubscriber\ThemeInfoRebuildSubscriber::getSubscribedEvents()
  2. 8.2 src/EventSubscriber/ThemeInfoRebuildSubscriber.php \Drupal\devel\EventSubscriber\ThemeInfoRebuildSubscriber::getSubscribedEvents()
  3. 4.x src/EventSubscriber/ThemeInfoRebuildSubscriber.php \Drupal\devel\EventSubscriber\ThemeInfoRebuildSubscriber::getSubscribedEvents()

File

src/EventSubscriber/ThemeInfoRebuildSubscriber.php, line 110

Class

ThemeInfoRebuildSubscriber
Subscriber for force the system to rebuild the theme registry.

Namespace

Drupal\devel\EventSubscriber

Code

public static function getSubscribedEvents() {

  // Set high priority value to start as early as possible.
  $events[KernelEvents::REQUEST][] = [
    'rebuildThemeInfo',
    256,
  ];
  return $events;
}