You are here

public function GoogleAuthManager::getAccountId in Open Social 8.3

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

Returns an account ID on a social network.

Return value

int|string The account ID on a social network.

Overrides AuthManagerInterface::getAccountId

File

modules/custom/social_auth_google/src/GoogleAuthManager.php, line 90

Class

GoogleAuthManager
Class GoogleAuthManager.

Namespace

Drupal\social_auth_google

Code

public function getAccountId() {
  return $this->profile
    ->getId();
}