You are here

function eu_cookie_compliance_update_8104 in EU Cookie Compliance (GDPR Compliance) 8

Change seconds to milliseconds for animation duration.

File

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

Code

function eu_cookie_compliance_update_8104() {
  $popup_delay = \Drupal::configFactory()
    ->get('eu_cookie_compliance.settings')
    ->get('popup_delay');
  if ($popup_delay < 10) {
    \Drupal::configFactory()
      ->getEditable('eu_cookie_compliance.settings')
      ->set('popup_delay', $popup_delay * 1000)
      ->save();
  }
}