You are here

public static function ResponseCspSubscriber::getSubscribedEvents in Content-Security-Policy 8

1 call to ResponseCspSubscriber::getSubscribedEvents()
ResponseCspSubscriberTest::testSubscribedEvents in tests/src/Unit/EventSubscriber/ResponseCspSubscriberTest.php
Check that the subscriber listens to the Response event.

File

src/EventSubscriber/ResponseCspSubscriber.php, line 78

Class

ResponseCspSubscriber
Class ResponseSubscriber.

Namespace

Drupal\csp\EventSubscriber

Code

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