public function PolicyAlterEvent::getPolicy in Content-Security-Policy 8
Retrieve the defined CSP policy.
Return value
\Drupal\csp\Csp The CSP policy.
File
- src/
Event/ PolicyAlterEvent.php, line 47
Class
- PolicyAlterEvent
- Event for altering a response CSP Policy.
Namespace
Drupal\csp\EventCode
public function getPolicy() {
return $this->policy;
}