You are here

function eu_cookie_compliance_update_8114 in EU Cookie Compliance (GDPR Compliance) 8

Add uuid to the config.

File

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

Code

function eu_cookie_compliance_update_8114() {
  \Drupal::configFactory()
    ->getEditable('eu_cookie_compliance.settings')
    ->set('uuid', \Drupal::service('uuid')
    ->generate())
    ->save();
}