You are here

public function TfaTestValidationPlugin::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

Overrides TfaValidationInterface::validateForm

File

tests/modules/tfa_test_plugins/src/Plugin/TfaValidation/TfaTestValidationPlugin.php, line 33

Class

TfaTestValidationPlugin
TFA Test Validation Plugin.

Namespace

Drupal\tfa_test_plugins\Plugin\TfaValidation

Code

public function validateForm(array $form, FormStateInterface $form_state) {
  return TRUE;
}