public function SocialAuth::getUserId in Social Auth 3.x
Same name and namespace in other branches
- 8.2 src/Entity/SocialAuth.php \Drupal\social_auth\Entity\SocialAuth::getUserId()
Returns the Drupal user id.
Return value
string The user id.
Overrides SocialApi::getUserId
File
- src/
Entity/ SocialAuth.php, line 49
Class
- SocialAuth
- Defines the Social Auth entity.
Namespace
Drupal\social_auth\EntityCode
public function getUserId() {
return $this
->get('user_id')->target_id;
}