protected function TfaLoginForm::begin in Two-factor Authentication (TFA) 8
Begin the TFA process.
Parameters
\Drupal\tfa\Plugin\TfaSendInterface $tfaSendPlugin: The send plugin instance.
File
- src/
Form/ TfaLoginForm.php, line 269
Class
- TfaLoginForm
- TFA user login form.
Namespace
Drupal\tfa\FormCode
protected function begin(TfaSendInterface $tfaSendPlugin) {
// Invoke begin method on send validation plugins.
if (method_exists($tfaSendPlugin, 'begin')) {
$tfaSendPlugin
->begin();
}
}