You are here

class GoogleUserManager in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/custom/social_auth_google/src/GoogleUserManager.php \Drupal\social_auth_google\GoogleUserManager
  2. 8.2 modules/custom/social_auth_google/src/GoogleUserManager.php \Drupal\social_auth_google\GoogleUserManager
  3. 8.3 modules/custom/social_auth_google/src/GoogleUserManager.php \Drupal\social_auth_google\GoogleUserManager
  4. 8.4 modules/custom/social_auth_google/src/GoogleUserManager.php \Drupal\social_auth_google\GoogleUserManager
  5. 8.5 modules/custom/social_auth_google/src/GoogleUserManager.php \Drupal\social_auth_google\GoogleUserManager
  6. 8.6 modules/custom/social_auth_google/src/GoogleUserManager.php \Drupal\social_auth_google\GoogleUserManager
  7. 8.7 modules/custom/social_auth_google/src/GoogleUserManager.php \Drupal\social_auth_google\GoogleUserManager
  8. 8.8 modules/custom/social_auth_google/src/GoogleUserManager.php \Drupal\social_auth_google\GoogleUserManager

Class GoogleUserManager.

@package Drupal\social_auth_google

Hierarchy

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_google
View 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

Namesort descending Modifiers Type Description Overrides
GoogleUserManager::getAccountId public function Get the account ID to the account on this site. Overrides UserManagerInterface::getAccountId
GoogleUserManager::getSocialNetworkKey public function Returns key-name of a social network. Overrides UserManagerInterface::getSocialNetworkKey
GoogleUserManager::setAccountId public function Set the account ID to the account on this site. Overrides UserManagerInterface::setAccountId
UserManager::$account protected property Object of a user account.
UserManager::$configFactory protected property
UserManager::$entityFieldManager protected property
UserManager::$entityTypeManager protected property
UserManager::$fieldPicture protected property Contains the field definition with a profile picture.
UserManager::$languageManager protected property
UserManager::$loggerFactory protected property
UserManager::$profile protected property Object of a user profile.
UserManager::$profileType protected property Contains the profile type.
UserManager::$token protected property
UserManager::$transliteration protected property
UserManager::createAccount public function Creates object of a new account. Overrides UserManagerInterface::createAccount
UserManager::createProfile public function Creates object of a new profile. Overrides UserManagerInterface::createProfile
UserManager::downloadProfilePicture public function Saves the picture from URL. Overrides UserManagerInterface::downloadProfilePicture
UserManager::getPictureDirectory public function Returns directory path to save picture. Overrides UserManagerInterface::getPictureDirectory
UserManager::setAccount public function Set an instance of user account to user manager to use it later. Overrides UserManagerInterface::setAccount
UserManager::setFieldPicture public function Set an instance of a field definition that contains picture. Overrides UserManagerInterface::setFieldPicture
UserManager::setProfile public function Set an instance of profile to user manager to use it later. Overrides UserManagerInterface::setProfile
UserManager::setProfilePicture public function Download and set the picture to profile. Overrides UserManagerInterface::setProfilePicture
UserManager::setProfileType public function Set the profile type. Overrides UserManagerInterface::setProfileType
UserManager::__construct public function UserManager constructor.