You are here

function csp_update_8002 in Content-Security-Policy 8

Set default reporting settings.

File

./csp.install, line 94
Installation hooks for csp.module.

Code

function csp_update_8002() {
  \Drupal::configFactory()
    ->getEditable('csp.settings')
    ->set('report.handler', 'csp-module')
    ->save();
}