You are here

function eu_cookie_compliance_update_8101 in EU Cookie Compliance (GDPR Compliance) 8

Force default value for "cookie_lifetime" item.

File

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

Code

function eu_cookie_compliance_update_8101() {
  \Drupal::configFactory()
    ->getEditable('eu_cookie_compliance.settings')
    ->set('cookie_lifetime', 100)
    ->save();
}