public function ReportingHandlerInterface::alterPolicy in Content-Security-Policy 8
Alter the provided policy according to the plugin settings.
Parameters
\Drupal\csp\Csp $policy: The policy to alter.
1 method overrides ReportingHandlerInterface::alterPolicy()
- ReportingHandlerBase::alterPolicy in src/
Plugin/ ReportingHandlerBase.php - Alter the provided policy according to the plugin settings.
File
- src/
Plugin/ ReportingHandlerInterface.php, line 40
Class
- ReportingHandlerInterface
- CSP Reporting Handler interface.
Namespace
Drupal\csp\PluginCode
public function alterPolicy(Csp $policy);