You are here

public function UserEmailVerification::loadVerificationByUserId in User email verification 8

Load verification item for requested user ID.

Parameters

int $uid: User ID.

Return value

array|false Verification item data array on success or boolean FALSE otherwise.

Overrides UserEmailVerificationInterface::loadVerificationByUserId

File

src/UserEmailVerification.php, line 263

Class

UserEmailVerification
User email verification helper service.

Namespace

Drupal\user_email_verification

Code

public function loadVerificationByUserId($uid) {
  return $this->database
    ->select(UserEmailVerificationInterface::VERIFICATION_TABLE_NAME, 'uev')
    ->fields('uev')
    ->condition('uev.uid', intval($uid), '=')
    ->execute()
    ->fetchAssoc();
}