You are here

public function TwitterUserManager::setAccountId in Open Social 8.9

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

Set the account ID to the account on this site.

Parameters

string $account_id: Identifier of account on this site.

Return value

null Returns null.

Overrides UserManagerInterface::setAccountId

File

modules/custom/social_auth_twitter/src/TwitterUserManager.php, line 25

Class

TwitterUserManager
Class TwitterUserManager.

Namespace

Drupal\social_auth_twitter

Code

public function setAccountId($account_id) {
  $this->account
    ->get('twitter_id')
    ->setValue($account_id);
}