You are here

static function EnvironmentSubscriber::getSubscribedEvents in Environment 8

File

src/EventSubscriber/EnvironmentSubscriber.php, line 26

Class

EnvironmentSubscriber

Namespace

Drupal\environment\EventSubscriber

Code

static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = array(
    'checkForEnvironmentSwitch',
  );
  return $events;
}