You are here

function social_auth_preprocess_login_with in Social Auth 8.2

Same name and namespace in other branches
  1. 8 social_auth.module \social_auth_preprocess_login_with()
  2. 3.x social_auth.module \social_auth_preprocess_login_with()

Implements hook_preprocess_HOOK().

File

./social_auth.module, line 24
Allows login using different social networking services.

Code

function social_auth_preprocess_login_with(&$variables) {
  $request = \Drupal::request();
  $variables['destination'] = $request
    ->get('destination');
  $variables['base_path'] = base_path();
  $variables['#cache'] = [
    'contexts' => [
      'url.query_args:destination',
    ],
  ];
}