You are here

public function TwitterAuthManager::getFirstName in Open Social 8.8

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

Returns first name on a social network if it possible.

Return value

string|null The first name on a social network or null.

Overrides AuthManagerInterface::getFirstName

File

modules/custom/social_auth_twitter/src/TwitterAuthManager.php, line 120

Class

TwitterAuthManager
Manages the authorization process before getting a long lived access token.

Namespace

Drupal\social_auth_twitter

Code

public function getFirstName() {

  // Twitter doesn't contain first name.
  return NULL;
}