function ThemeInfoRebuildSubscriber::getSubscribedEvents

Same name in other branches
  1. 4.x src/EventSubscriber/ThemeInfoRebuildSubscriber.php \Drupal\devel\EventSubscriber\ThemeInfoRebuildSubscriber::getSubscribedEvents()

File

src/EventSubscriber/ThemeInfoRebuildSubscriber.php, line 133

Class

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

Namespace

Drupal\devel\EventSubscriber

Code

public static function getSubscribedEvents() : array {
    // Set high priority value to start as early as possible.
    $events[KernelEvents::REQUEST][] = [
        'rebuildThemeInfo',
        256,
    ];
    return $events;
}