You are here

function ldap_help_update_8301 in Lightweight Directory Access Protocol (LDAP) 8.3

Corrects a configuration field type.

File

ldap_help/ldap_help.install, line 18
LDAP Help Install File.

Code

function ldap_help_update_8301() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('ldap_help.settings');
  $data = $config
    ->get('watchdog_detail');
  if ($data) {
    $config
      ->set('watchdog_detail', TRUE);
  }
  $config
    ->set('watchdog_detail', FALSE);
  $config
    ->save(TRUE);
}