public function FacebookAuthManager::getLastName in Open Social 8.2
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getLastName()
- 8 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getLastName()
- 8.3 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getLastName()
- 8.4 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getLastName()
- 8.5 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getLastName()
- 8.6 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getLastName()
- 8.7 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getLastName()
- 8.8 modules/custom/social_auth_facebook/src/FacebookAuthManager.php \Drupal\social_auth_facebook\FacebookAuthManager::getLastName()
Returns last name on a social network if it possible.
Return value
string|null The last name on a social network or null.
Overrides AuthManagerInterface::getLastName
File
- modules/
custom/ social_auth_facebook/ src/ FacebookAuthManager.php, line 190
Class
- FacebookAuthManager
- Class FacebookAuthManager.
Namespace
Drupal\social_auth_facebookCode
public function getLastName() {
if ($profile = $this
->getProfile()) {
return $profile
->getField('last_name');
}
}