You are here

function openid_connect_update_8104 in OpenID Connect / OAuth client 8

Same name and namespace in other branches
  1. 2.x openid_connect.install \openid_connect_update_8104()

Update the active config with the connect existing users value.

File

./openid_connect.install, line 110
Install, update and uninstall functions for the OpenID Connect module.

Code

function openid_connect_update_8104() {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('openid_connect.settings');
  $config
    ->set('connect_existing_users', FALSE);
  $config
    ->save(TRUE);
}