You are here

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

EntryForm constructor.

Parameters

\Drupal\tfa\TfaValidationPluginManager $tfa_validation_manager: Plugin manager for validation plugins.

\Drupal\tfa\TfaLoginPluginManager $tfa_login_manager: Plugin manager for login plugins.

\Drupal\Core\Flood\FloodInterface $flood: The flood control mechanism.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date service.

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

File

src/Form/EntryForm.php, line 98

Class

EntryForm
TFA entry form.

Namespace

Drupal\tfa\Form

Code

public function __construct(TfaValidationPluginManager $tfa_validation_manager, TfaLoginPluginManager $tfa_login_manager, FloodInterface $flood, DateFormatterInterface $date_formatter, UserDataInterface $user_data) {
  $this->tfaValidationManager = $tfa_validation_manager;
  $this->tfaLoginManager = $tfa_login_manager;
  $this->tfaSettings = $this
    ->config('tfa.settings');
  $this->flood = $flood;
  $this->dateFormatter = $date_formatter;
  $this->userData = $user_data;
}