You are here

public function TfaValidationInterface::validateForm in Two-factor Authentication (TFA) 8

Validate form.

Parameters

array $form: The configuration form array.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

bool Whether form passes validation or not

3 methods override TfaValidationInterface::validateForm()
TfaRecoveryCode::validateForm in src/Plugin/TfaValidation/TfaRecoveryCode.php
Validate form.
TfaTestValidationPlugin::validateForm in tests/modules/tfa_test_plugins/src/Plugin/TfaValidation/TfaTestValidationPlugin.php
Validate form.
TfaTrustedBrowser::validateForm in src/Plugin/TfaLogin/TfaTrustedBrowser.php
Validate form.

File

src/Plugin/TfaValidationInterface.php, line 39

Class

TfaValidationInterface
Interface TfaValidationInterface.

Namespace

Drupal\tfa\Plugin

Code

public function validateForm(array $form, FormStateInterface $form_state);