You are here

public static function PsrResponseSubscriber::getSubscribedEvents in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/EventSubscriber/PsrResponseSubscriber.php \Drupal\Core\EventSubscriber\PsrResponseSubscriber::getSubscribedEvents()

File

core/lib/Drupal/Core/EventSubscriber/PsrResponseSubscriber.php, line 52

Class

PsrResponseSubscriber
Response subscriber for handling PSR-7 responses.

Namespace

Drupal\Core\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[KernelEvents::VIEW][] = [
    'onKernelView',
  ];
  return $events;
}