You are here

public function UserEmailVerificationNeeded::__construct in User email verification 8

Constructs a new object.

Parameters

\Drupal\user_email_verification\UserEmailVerificationInterface $user_email_verification_service: User email verification helper service.

\Drupal\Core\Session\AccountProxyInterface $current_user: The current active user.

File

src/Cache/Context/UserEmailVerificationNeeded.php, line 39

Class

UserEmailVerificationNeeded
Defines the UserEmailVerificationNeeded context service.

Namespace

Drupal\user_email_verification\Cache\Context

Code

public function __construct(UserEmailVerificationInterface $user_email_verification_service, AccountProxyInterface $current_user) {
  $this->userEmailVerification = $user_email_verification_service;
  $this->currentUser = $current_user;
}