You are here

function eu_cookie_compliance_update_8106 in EU Cookie Compliance (GDPR Compliance) 8

Create new config value to handle consent options.

File

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

Code

function eu_cookie_compliance_update_8106() {
  \Drupal::configFactory()
    ->getEditable('eu_cookie_compliance.settings')
    ->set('method', 'default')
    ->set('disagree_button_label', 'No, thanks')
    ->set('disabled_javascripts', '')
    ->set('whitelisted_cookies', '')
    ->save();
}