You are here

public function UserEmailVerificationVerifyEvent::__construct in User email verification 8

Constructs a user email verification event object.

Parameters

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

bool $notify_as_blocked: Whether to notify the user as blocked account.

File

src/Event/UserEmailVerificationVerifyEvent.php, line 37

Class

UserEmailVerificationVerifyEvent
Wraps a user email verification event for event subscribers.

Namespace

Drupal\user_email_verification\Event

Code

public function __construct(UserInterface $user, $notify_as_blocked = FALSE) {
  $this->user = $user;
  $this->notifyAsBlocked = $notify_as_blocked;
}