You are here

final class CspEvents in Content-Security-Policy 8

Contains all events dispatched by CSP module.

@package Drupal\csp

Hierarchy

Expanded class hierarchy of CspEvents

6 files declare their use of CspEvents
CoreCspSubscriber.php in src/EventSubscriber/CoreCspSubscriber.php
CoreCspSubscriberTest.php in tests/src/Unit/EventSubscriber/CoreCspSubscriberTest.php
Ie9CspSubscriber.php in src/EventSubscriber/Ie9CspSubscriber.php
Ie9CspSubscriberTest.php in tests/src/Unit/EventSubscriber/Ie9CspSubscriberTest.php
ResponseCspSubscriber.php in src/EventSubscriber/ResponseCspSubscriber.php

... See full list

File

src/CspEvents.php, line 10

Namespace

Drupal\csp
View source
final class CspEvents {

  /**
   * Name of event fired to alter CSP policies for the current request.
   *
   * The event listener receives a \Drupal\csp\Event\PolicyAlterEvent instance.
   *
   * @Event
   *
   * @var string
   */
  const POLICY_ALTER = 'csp.policy_alter';

}

Members

Namesort descending Modifiers Type Description Overrides
CspEvents::POLICY_ALTER constant Name of event fired to alter CSP policies for the current request.