You are here

public function UserEmailVerificationInterface::getUserByNameOrEmail in User email verification 8

Load Drupal user by name or email.

Parameters

string $name_or_email: User name/login or email.

bool $active_only: Whether to search for active users only.

Return value

null|\Drupal\user\UserInterface Drupal user on success or NULL otherwise.

1 method overrides UserEmailVerificationInterface::getUserByNameOrEmail()
UserEmailVerification::getUserByNameOrEmail in src/UserEmailVerification.php
Load Drupal user by name or email.

File

src/UserEmailVerificationInterface.php, line 280

Class

UserEmailVerificationInterface
Interface defining User email verification helper service.

Namespace

Drupal\user_email_verification

Code

public function getUserByNameOrEmail($name_or_email, $active_only);