You are here

public function UserEmailVerificationRequestForm::__construct in User email verification 8

Constructs a new UserEmailVerificationRequestForm 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.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

File

src/Form/UserEmailVerificationRequestForm.php, line 60

Class

UserEmailVerificationRequestForm
Class UserEmailVerificationRequestForm.

Namespace

Drupal\user_email_verification\Form

Code

public function __construct(UserEmailVerificationInterface $user_email_verification_service, AccountProxyInterface $current_user, RequestStack $request_stack, ConfigFactoryInterface $config_factory) {
  $this->userEmailVerification = $user_email_verification_service;
  $this->currentUser = $current_user;
  $this->request = $request_stack
    ->getCurrentRequest();
  $this->configUserSettings = $config_factory
    ->get('user.settings');
}