You are here

function samlauth_update_8303 in SAML Authentication 8.3

Same name and namespace in other branches
  1. 4.x samlauth.install \samlauth_update_8303()

Copy setting 'Attempt to link SAML data' into more fine grained settings.

File

./samlauth.install, line 68
Update and uninstall functions for the samlauth module.

Code

function samlauth_update_8303() {
  $config = \Drupal::configFactory()
    ->getEditable(SamlController::CONFIG_OBJECT_NAME);
  if ($config
    ->get('map_users')) {
    $config
      ->set('map_users_name', TRUE);
    $config
      ->set('map_users_mail', TRUE);
    $config
      ->save(TRUE);
  }
}