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