function social_auth_preprocess_login_with in Social Auth 3.x
Same name and namespace in other branches
- 8.2 social_auth.module \social_auth_preprocess_login_with()
- 8 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['destination']);
$variables['base_path'] = base_path();
$variables['#cache'] = [
'contexts' => [
'url.query_args:destination',
],
];
}