function ldap_sso_update_8005 in LDAP Single Sign On 8.4
Same name and namespace in other branches
- 8 ldap_sso.install \ldap_sso_update_8005()
Update cookie expiration setting.
File
- ./
ldap_sso.install, line 69
Code
function ldap_sso_update_8005() {
$config_factory = \Drupal::configFactory();
$config = $config_factory
->getEditable('ldap_sso.settings');
if ($config
->get('cookieExpire') == -1) {
$config
->set('cookieExpire', FALSE);
}
else {
$config
->set('cookieExpire', TRUE);
}
$config
->save(TRUE);
}