public function GoogleAuthManager::getFirstName in Open Social 8.9
Same name and namespace in other branches
- 8 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::getFirstName()
- 8.2 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::getFirstName()
- 8.3 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::getFirstName()
- 8.4 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::getFirstName()
- 8.5 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::getFirstName()
- 8.6 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::getFirstName()
- 8.7 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::getFirstName()
- 8.8 modules/custom/social_auth_google/src/GoogleAuthManager.php \Drupal\social_auth_google\GoogleAuthManager::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_google/ src/ GoogleAuthManager.php, line 97
Class
- GoogleAuthManager
- Class GoogleAuthManager.
Namespace
Drupal\social_auth_googleCode
public function getFirstName() {
return $this->profile
->getGivenName();
}