You are here

function eu_cookie_compliance_update_8120 in EU Cookie Compliance (GDPR Compliance) 8

Add config variable for setting cookie lifetime to zero on disagree.

File

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

Code

function eu_cookie_compliance_update_8120() {
  \Drupal::configFactory()
    ->getEditable('eu_cookie_compliance.settings')
    ->set('set_cookie_session_zero_on_disagree', FALSE)
    ->save();
}