You are here

public static function HtmlResponseSubscriber::getSubscribedEvents in Drupal 8

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

File

core/lib/Drupal/Core/EventSubscriber/HtmlResponseSubscriber.php, line 51

Class

HtmlResponseSubscriber
Response subscriber to handle HTML responses.

Namespace

Drupal\Core\EventSubscriber

Code

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