function hook_social_auth_extra_profile_presave in Open Social 8.7
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_extra/social_auth_extra.api.php \hook_social_auth_extra_profile_presave()
- 8 modules/custom/social_auth_extra/social_auth_extra.api.php \hook_social_auth_extra_profile_presave()
- 8.2 modules/custom/social_auth_extra/social_auth_extra.api.php \hook_social_auth_extra_profile_presave()
- 8.3 modules/custom/social_auth_extra/social_auth_extra.api.php \hook_social_auth_extra_profile_presave()
- 8.4 modules/custom/social_auth_extra/social_auth_extra.api.php \hook_social_auth_extra_profile_presave()
- 8.5 modules/custom/social_auth_extra/social_auth_extra.api.php \hook_social_auth_extra_profile_presave()
- 8.6 modules/custom/social_auth_extra/social_auth_extra.api.php \hook_social_auth_extra_profile_presave()
- 8.8 modules/custom/social_auth_extra/social_auth_extra.api.php \hook_social_auth_extra_profile_presave()
This hook will called before creating a new profile.
For when a user is registering via social network.
Parameters
\Drupal\user\UserInterface $account: The Account.
\Drupal\profile\Entity\ProfileInterface $profile: The Profile.
\Drupal\social_auth_extra\AuthManagerInterface $auth_manager: The AuthManagerInterface.
\Drupal\social_auth_extra\UserManagerInterface $user_manager: The UserManagerInterface.
1 function implements hook_social_auth_extra_profile_presave()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- social_sso_social_auth_extra_profile_presave in modules/
social_features/ social_sso/ social_sso.module - Implements hook_social_auth_extra_profile_presave().
1 invocation of hook_social_auth_extra_profile_presave()
- social_auth_extra_form_user_register_form_submit in modules/
custom/ social_auth_extra/ social_auth_extra.module - Custom submit function for user_register_form.
File
- modules/
custom/ social_auth_extra/ social_auth_extra.api.php, line 43 - Hooks specific to the Social Auth Extra module.
Code
function hook_social_auth_extra_profile_presave(\Drupal\user\UserInterface $account, \Drupal\profile\Entity\ProfileInterface $profile, \Drupal\social_auth_extra\AuthManagerInterface $auth_manager, \Drupal\social_auth_extra\UserManagerInterface $user_manager) {
}