You are here

function eu_cookie_compliance_update_8112 in EU Cookie Compliance (GDPR Compliance) 8

Add config variables for the "Opt-in with categories" feature.

File

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

Code

function eu_cookie_compliance_update_8112() {
  \Drupal::configFactory()
    ->getEditable('eu_cookie_compliance.settings')
    ->set('cookie_categories', '')
    ->set('enable_save_preferences_button', TRUE)
    ->set('save_preferences_button_label', 'Save preferences')
    ->set('accept_all_categories_button_label', 'Accept all cookies')
    ->set('fix_first_cookie_category', TRUE)
    ->set('select_all_categories_by_default', FALSE)
    ->set('withdraw_button_on_info_popup', FALSE)
    ->save();
}