You are here

function social_auth_linkedin_update_8201 in Social Auth LinkedIn 8.2

Same name and namespace in other branches
  1. 3.x social_auth_linkedin.install \social_auth_linkedin_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_linkedin.install, line 30
Install, update, and uninstall functions for the Social Auth LinkedIn module.

Code

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