You are here

public static function AddHttpHeaders::getSubscribedEvents in Access unpublished 8

File

src/EventSubscriber/AddHttpHeaders.php, line 68

Class

AddHttpHeaders
Add new HTTP headers as added in settings form.

Namespace

Drupal\access_unpublished\EventSubscriber

Code

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