public function ReportingHandlerBase::alterPolicy in Content-Security-Policy 8
Alter the provided policy according to the plugin settings.
Parameters
\Drupal\csp\Csp $policy: The policy to alter.
Overrides ReportingHandlerInterface::alterPolicy
3 methods override ReportingHandlerBase::alterPolicy()
- ReportUri::alterPolicy in src/
Plugin/ CspReportingHandler/ ReportUri.php - Alter the provided policy according to the plugin settings.
- SiteLog::alterPolicy in src/
Plugin/ CspReportingHandler/ SiteLog.php - Alter the provided policy according to the plugin settings.
- Uri::alterPolicy in src/
Plugin/ CspReportingHandler/ Uri.php - Alter the provided policy according to the plugin settings.
File
- src/
Plugin/ ReportingHandlerBase.php, line 67
Class
- ReportingHandlerBase
- Base Reporting Handler implementation.
Namespace
Drupal\csp\PluginCode
public function alterPolicy(Csp $policy) {
}