final class CspEvents in Content-Security-Policy 8
Contains all events dispatched by CSP module.
@package Drupal\csp
Hierarchy
- class \Drupal\csp\CspEvents
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
File
- src/
CspEvents.php, line 10
Namespace
Drupal\cspView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CspEvents:: |
constant | Name of event fired to alter CSP policies for the current request. |