public function TfaSetup::validateForm in Two-factor Authentication (TFA) 8
Validate form.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
bool TRUE if setup completed otherwise FALSE.
File
- src/
TfaSetup.php, line 68
Class
- TfaSetup
- TFA Setup.
Namespace
Drupal\tfaCode
public function validateForm(array $form, FormStateInterface &$form_state) {
return $this->setupPlugin
->validateSetupForm($form, $form_state);
}