You are here

public function JanrainCaptureApi::isJanrainAccount in Janrain Registration 8

Returns a state whether a user has a Janrain account.

Parameters

\Drupal\user\UserInterface $account: The Drupal user.

Return value

bool The state.

Overrides JanrainCaptureApiInterface::isJanrainAccount

File

src/JanrainCaptureApi.php, line 233

Class

JanrainCaptureApi
The integration between Janrain and Drupal.

Namespace

Drupal\janrain_capture

Code

public function isJanrainAccount(UserInterface $account) : bool {
  return (bool) $this->userData
    ->get('janrain_capture', $account
    ->id(), 'janrain_username');
}