You are here

function eu_cookie_compliance_update_8119 in EU Cookie Compliance (GDPR Compliance) 8

Add toggle for automatic cookies removal to the config.

File

./eu_cookie_compliance.install, line 470
Update scripts for the EU Cookie Compliance module.

Code

function eu_cookie_compliance_update_8119() {
  \Drupal::configFactory()
    ->getEditable('eu_cookie_compliance.settings')
    ->set('automatic_cookies_removal', TRUE)
    ->save();
}