You are here

public function TfaLoginForm::__construct in Two-factor Authentication (TFA) 8

Constructs a new user login form.

Parameters

\Drupal\Core\Flood\FloodInterface $flood: The flood service.

\Drupal\user\UserStorageInterface $user_storage: The user storage.

\Drupal\user\UserAuthInterface $user_auth: The user authentication object.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Drupal\tfa\TfaValidationPluginManager $tfa_validation_manager: Tfa validation plugin manager.

\Drupal\tfa\TfaLoginPluginManager $tfa_plugin_manager: Tfa setup plugin manager.

\Drupal\user\UserDataInterface $user_data: User data service.

\Drupal\Core\Routing\RedirectDestinationInterface $destination: Redirect destination.

Overrides UserLoginForm::__construct

File

src/Form/TfaLoginForm.php, line 95

Class

TfaLoginForm
TFA user login form.

Namespace

Drupal\tfa\Form

Code

public function __construct(FloodInterface $flood, UserStorageInterface $user_storage, UserAuthInterface $user_auth, RendererInterface $renderer, TfaValidationPluginManager $tfa_validation_manager, TfaLoginPluginManager $tfa_plugin_manager, UserDataInterface $user_data, RedirectDestinationInterface $destination) {
  parent::__construct($flood, $user_storage, $user_auth, $renderer);
  $this->tfaValidationManager = $tfa_validation_manager;
  $this->tfaLoginManager = $tfa_plugin_manager;
  $this->userData = $user_data;
  $this->destination = $destination;
}