You are here

public function UserEmailVerification::deleteVerification in User email verification 8

Delete user email verification item.

Parameters

\Drupal\user\UserInterface $user: User to delete email verification item for.

Overrides UserEmailVerificationInterface::deleteVerification

File

src/UserEmailVerification.php, line 320

Class

UserEmailVerification
User email verification helper service.

Namespace

Drupal\user_email_verification

Code

public function deleteVerification(UserInterface $user) {
  $this->database
    ->delete(UserEmailVerificationInterface::VERIFICATION_TABLE_NAME)
    ->condition('uid', $user
    ->id())
    ->execute();
}