You are here

function social_auth_google_update_8201 in Social Auth Google 3.x

Same name and namespace in other branches
  1. 8.2 social_auth_google.install \social_auth_google_update_8201()

Implements hook_update_N().

The key api_calls was changed to endpoints. This update copies the values in 'api_calls' to 'endpoints'.

File

./social_auth_google.install, line 30
Install, update, and uninstall functions for the Social Auth Google module.

Code

function social_auth_google_update_8201(&$sandbox) {
  $config = \Drupal::configFactory()
    ->getEditable('social_auth_google.settings');
  $endpoints = $config
    ->get('api_calls');
  $config
    ->set('endpoints', $endpoints)
    ->save();
}