You are here

function hook_social_auth_extra_profile_presave in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/custom/social_auth_extra/social_auth_extra.api.php \hook_social_auth_extra_profile_presave()
  2. 8 modules/custom/social_auth_extra/social_auth_extra.api.php \hook_social_auth_extra_profile_presave()
  3. 8.2 modules/custom/social_auth_extra/social_auth_extra.api.php \hook_social_auth_extra_profile_presave()
  4. 8.3 modules/custom/social_auth_extra/social_auth_extra.api.php \hook_social_auth_extra_profile_presave()
  5. 8.4 modules/custom/social_auth_extra/social_auth_extra.api.php \hook_social_auth_extra_profile_presave()
  6. 8.5 modules/custom/social_auth_extra/social_auth_extra.api.php \hook_social_auth_extra_profile_presave()
  7. 8.6 modules/custom/social_auth_extra/social_auth_extra.api.php \hook_social_auth_extra_profile_presave()
  8. 8.7 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) {
}