You are here

public function FacebookUserManager::getAccountId in Open Social 8

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

Get the account ID to the account on this site.

Return value

string Account ID on this site.

Overrides UserManagerInterface::getAccountId

File

modules/custom/social_auth_facebook/src/FacebookUserManager.php, line 32

Class

FacebookUserManager
Class FacebookUserManager.

Namespace

Drupal\social_auth_facebook

Code

public function getAccountId() {
  return $this->account
    ->get('facebook_id')->value;
}