function openid_connect_update_8102 in OpenID Connect / OAuth client 8
Same name and namespace in other branches
- 2.x openid_connect.install \openid_connect_update_8102()
Add default config for GitHub provider.
File
- ./
openid_connect.install, line 85 - Install, update and uninstall functions for the OpenID Connect module.
Code
function openid_connect_update_8102() {
$config_factory = \Drupal::configFactory();
$config = $config_factory
->getEditable('openid_connect.settings.github');
$config
->set('enabled', FALSE);
$config
->set('settings', [
'client_id' => '',
'client_secret' => '',
]);
$config
->save(TRUE);
}