You are here

function ldap_authentication_update_8304 in Lightweight Directory Access Protocol (LDAP) 8.4

Same name and namespace in other branches
  1. 8.3 ldap_authentication/ldap_authentication.install \ldap_authentication_update_8304()

Removes the ldap_authentication_conf prefix.

File

ldap_authentication/ldap_authentication.install, line 54

Code

function ldap_authentication_update_8304() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('ldap_authentication.settings');
  $data = $config
    ->get('ldap_authentication_conf');
  if ($data) {
    $config
      ->clear('ldap_authentication_conf');
    $config
      ->setData($data);
    $config
      ->save(TRUE);
  }
}