You are here

public static function HstsSubscriber::getSubscribedEvents in HTTP Strict Transport Security 8

Registers the methods in this class that should be listeners.

Return value

array An array of event listener definitions.

File

src/HstsSubscriber.php, line 67
Contains \Drupal\hsts\HstsSubscriber.

Class

HstsSubscriber
Subscribes to the kernel request event to add HAL media types.

Namespace

Drupal\hsts

Code

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