public function BasicSetup::__construct in Two-factor Authentication (TFA) 8
BasicSetup constructor.
Parameters
\Drupal\Component\Plugin\PluginManagerInterface $manager: The plugin manager to fetch plugin information.
\Drupal\user\UserDataInterface $user_data: The user data object to store user information.
\Drupal\tfa\TfaValidationPluginManager $tfa_validation_manager: The validation plugin manager.
\Drupal\tfa\TfaLoginPluginManager $tfa_login_manager: The login plugin manager.
\Drupal\tfa\TfaSendPluginManager $tfa_send_manager: The send plugin manager.
\Drupal\Core\Password\PasswordInterface $password_checker: The password service.
\Drupal\Core\Mail\MailManagerInterface $mail_manager: The mail manager.
\Drupal\user\UserStorageInterface $user_storage: The user storage.
File
- src/
Form/ BasicSetup.php, line 106
Class
- BasicSetup
- TFA setup form router.
Namespace
Drupal\tfa\FormCode
public function __construct(PluginManagerInterface $manager, UserDataInterface $user_data, TfaValidationPluginManager $tfa_validation_manager, TfaLoginPluginManager $tfa_login_manager, TfaSendPluginManager $tfa_send_manager, PasswordInterface $password_checker, MailManagerInterface $mail_manager, UserStorageInterface $user_storage) {
$this->manager = $manager;
$this->userData = $user_data;
$this->tfaValidation = $tfa_validation_manager;
$this->tfaLogin = $tfa_login_manager;
$this->tfaSend = $tfa_send_manager;
$this->passwordChecker = $password_checker;
$this->mailManager = $mail_manager;
$this->userStorage = $user_storage;
}