You are here

function cookies_update_8002 in COOKiES Consent Management 1.0.x

Remove time out setting.

File

./cookies.install, line 30
Installation and update functions for this project.

Code

function cookies_update_8002() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('cookies.config');
  if ($config
    ->get('lib_timeout') !== NULL) {
    $config
      ->clear('lib_timeout');
  }
  $config
    ->save(TRUE);
}