You are here

function csp_update_8001 in Content-Security-Policy 8

Create module configuration.

File

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

Code

function csp_update_8001() {
  \Drupal::configFactory()
    ->getEditable('csp.settings')
    ->set('enforce', FALSE)
    ->save();
}