class GoogleUserManager in Open Social 8.2
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_google/src/GoogleUserManager.php \Drupal\social_auth_google\GoogleUserManager
- 8 modules/custom/social_auth_google/src/GoogleUserManager.php \Drupal\social_auth_google\GoogleUserManager
- 8.3 modules/custom/social_auth_google/src/GoogleUserManager.php \Drupal\social_auth_google\GoogleUserManager
- 8.4 modules/custom/social_auth_google/src/GoogleUserManager.php \Drupal\social_auth_google\GoogleUserManager
- 8.5 modules/custom/social_auth_google/src/GoogleUserManager.php \Drupal\social_auth_google\GoogleUserManager
- 8.6 modules/custom/social_auth_google/src/GoogleUserManager.php \Drupal\social_auth_google\GoogleUserManager
- 8.7 modules/custom/social_auth_google/src/GoogleUserManager.php \Drupal\social_auth_google\GoogleUserManager
- 8.8 modules/custom/social_auth_google/src/GoogleUserManager.php \Drupal\social_auth_google\GoogleUserManager
Class GoogleUserManager.
@package Drupal\social_auth_google
Hierarchy
- class \Drupal\social_auth_extra\UserManager implements UserManagerInterface
- class \Drupal\social_auth_google\GoogleUserManager
Expanded class hierarchy of GoogleUserManager
1 string reference to 'GoogleUserManager'
- social_auth_google.services.yml in modules/
custom/ social_auth_google/ social_auth_google.services.yml - modules/custom/social_auth_google/social_auth_google.services.yml
1 service uses GoogleUserManager
- social_auth_google.user_manager in modules/
custom/ social_auth_google/ social_auth_google.services.yml - \Drupal\social_auth_google\GoogleUserManager
File
- modules/
custom/ social_auth_google/ src/ GoogleUserManager.php, line 13
Namespace
Drupal\social_auth_googleView source
class GoogleUserManager extends UserManager {
/**
* {@inheritdoc}
*/
public function getSocialNetworkKey() {
return GoogleAuthSettings::getSocialNetworkKey();
}
/**
* {@inheritdoc}
*/
public function setAccountId($account_id) {
$this->account
->get('google_id')
->setValue($account_id);
}
/**
* {@inheritdoc}
*/
public function getAccountId() {
return $this->account
->get('google_id')->value;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GoogleUserManager:: |
public | function |
Get the account ID to the account on this site. Overrides UserManagerInterface:: |
|
GoogleUserManager:: |
public | function |
Returns key-name of a social network. Overrides UserManagerInterface:: |
|
GoogleUserManager:: |
public | function |
Set the account ID to the account on this site. Overrides UserManagerInterface:: |
|
UserManager:: |
protected | property | Object of a user account. | |
UserManager:: |
protected | property | ||
UserManager:: |
protected | property | ||
UserManager:: |
protected | property | ||
UserManager:: |
protected | property | Contains the field definition with a profile picture. | |
UserManager:: |
protected | property | ||
UserManager:: |
protected | property | ||
UserManager:: |
protected | property | Object of a user profile. | |
UserManager:: |
protected | property | Contains the profile type. | |
UserManager:: |
protected | property | ||
UserManager:: |
protected | property | ||
UserManager:: |
public | function |
Creates object of a new account. Overrides UserManagerInterface:: |
|
UserManager:: |
public | function |
Creates object of a new profile. Overrides UserManagerInterface:: |
|
UserManager:: |
public | function |
Saves the picture from URL. Overrides UserManagerInterface:: |
|
UserManager:: |
public | function |
Returns directory path to save picture. Overrides UserManagerInterface:: |
|
UserManager:: |
public | function |
Set an instance of user account to user manager to use it later. Overrides UserManagerInterface:: |
|
UserManager:: |
public | function |
Set an instance of a field definition that contains picture. Overrides UserManagerInterface:: |
|
UserManager:: |
public | function |
Set an instance of profile to user manager to use it later. Overrides UserManagerInterface:: |
|
UserManager:: |
public | function |
Download and set the picture to profile. Overrides UserManagerInterface:: |
|
UserManager:: |
public | function |
Set the profile type. Overrides UserManagerInterface:: |
|
UserManager:: |
public | function | UserManager constructor. |