You are here

public static function CspSubscriber::getSubscribedEvents in Raven: Sentry Integration 8.2

Same name and namespace in other branches
  1. 3.x src/EventSubscriber/CspSubscriber.php \Drupal\raven\EventSubscriber\CspSubscriber::getSubscribedEvents()

File

src/EventSubscriber/CspSubscriber.php, line 26

Class

CspSubscriber
Subscriber for CSP events.

Namespace

Drupal\raven\EventSubscriber

Code

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