You are here

public function UserAuthenticator::getDrupalUserId in Social Post 8.2

Same name and namespace in other branches
  1. 3.x src/User/UserAuthenticator.php \Drupal\social_post\User\UserAuthenticator::getDrupalUserId()

Gets the Drupal user id based on the provider user id.

Parameters

string $provider_user_id: User's id on provider.

Return value

int|false The Drupal user id if it exists. False otherwise.

File

src/User/UserAuthenticator.php, line 29

Class

UserAuthenticator
Manages Drupal authentication tasks for Social Post.

Namespace

Drupal\social_post\User

Code

public function getDrupalUserId($provider_user_id) {
  return $this->userManager
    ->getDrupalUserId($provider_user_id);
}