You are here

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

2 calls to CoreCspSubscriber::getSubscribedEvents()
CoreCspSubscriberTest::testSubscribedEvents in tests/src/Unit/EventSubscriber/CoreCspSubscriberTest.php
Check that the subscriber listens to the Policy Alter event.
Ie9CspSubscriberTest::testSubscribedEvents in tests/src/Unit/EventSubscriber/Ie9CspSubscriberTest.php
Check that the subscriber listens to the Policy Alter event.

File

src/EventSubscriber/CoreCspSubscriber.php, line 35

Class

CoreCspSubscriber
Alter CSP policy for core modules and themes.

Namespace

Drupal\csp\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[CspEvents::POLICY_ALTER] = [
    'onCspPolicyAlter',
  ];
  return $events;
}