You are here

function eu_cookie_compliance_update_8124 in EU Cookie Compliance (GDPR Compliance) 8

Add config variables for cookie values.

File

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

Code

function eu_cookie_compliance_update_8124() {
  \Drupal::configFactory()
    ->getEditable('eu_cookie_compliance.settings')
    ->set('cookie_value_disagreed', '0')
    ->set('cookie_value_agreed_show_thank_you', '1')
    ->set('cookie_value_agreed', '2')
    ->save();
}