function social_auth_update_8001 in Social Auth 8
Implements hook_update_N().
File
- ./
social_auth.install, line 11 - Install, update and uninstall functions for Social Auth.
Code
function social_auth_update_8001(&$sandbox) {
$config = \Drupal::service('config.factory')
->getEditable('social_auth.settings');
// Set and save new message value.
$config
->set('post_login_path', 'user')
->set('redirect_user_form', FALSE)
->set('disable_admin_login', TRUE)
->set('disabled_roles', array())
->save();
}