social_auth_extra.api.php in Open Social 8.2
Same filename and directory in other branches
- 8.9 modules/custom/social_auth_extra/social_auth_extra.api.php
- 8 modules/custom/social_auth_extra/social_auth_extra.api.php
- 8.3 modules/custom/social_auth_extra/social_auth_extra.api.php
- 8.4 modules/custom/social_auth_extra/social_auth_extra.api.php
- 8.5 modules/custom/social_auth_extra/social_auth_extra.api.php
- 8.6 modules/custom/social_auth_extra/social_auth_extra.api.php
- 8.7 modules/custom/social_auth_extra/social_auth_extra.api.php
- 8.8 modules/custom/social_auth_extra/social_auth_extra.api.php
Hooks specific to the Social Auth Extra module.
File
modules/custom/social_auth_extra/social_auth_extra.api.phpView source
<?php
/**
* @file
* Hooks specific to the Social Auth Extra module.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* This hook will called before creating a new account.
*
* For when a user is registering via social network.
*
* @param \Drupal\user\UserInterface $account
* The Account.
* @param \Drupal\social_auth_extra\AuthManagerInterface $auth_manager
* The AuthManagerInterface.
* @param \Drupal\social_auth_extra\UserManagerInterface $user_manager
* The UserManagerInterface.
*/
function hook_social_auth_extra_user_presave(\Drupal\user\UserInterface $account, \Drupal\social_auth_extra\AuthManagerInterface $auth_manager, \Drupal\social_auth_extra\UserManagerInterface $user_manager) {
}
/**
* This hook will called before creating a new profile.
*
* For when a user is registering via social network.
*
* @param \Drupal\user\UserInterface $account
* The Account.
* @param \Drupal\profile\Entity\ProfileInterface $profile
* The Profile.
* @param \Drupal\social_auth_extra\AuthManagerInterface $auth_manager
* The AuthManagerInterface.
* @param \Drupal\social_auth_extra\UserManagerInterface $user_manager
* The UserManagerInterface.
*/
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) {
}
/**
* @} End of "addtogroup hooks".
*/
Functions
Name | Description |
---|---|
hook_social_auth_extra_profile_presave | This hook will called before creating a new profile. |
hook_social_auth_extra_user_presave | This hook will called before creating a new account. |