You are here

public function TfaSetupInterface::validateSetupForm in Two-factor Authentication (TFA) 8

Validate the setup data.

Parameters

array $form: The configuration form array.

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

Return value

bool Whether or not form passes validation.

3 methods override TfaSetupInterface::validateSetupForm()
TfaRecoveryCodeSetup::validateSetupForm in src/Plugin/TfaSetup/TfaRecoveryCodeSetup.php
Validate the setup data.
TfaTestValidationPluginSetupPlugin::validateSetupForm in tests/modules/tfa_test_plugins/src/Plugin/TfaSetup/TfaTestValidationPluginSetupPlugin.php
Validate the setup data.
TfaTrustedBrowserSetup::validateSetupForm in src/Plugin/TfaSetup/TfaTrustedBrowserSetup.php
Validate the setup data.

File

src/Plugin/TfaSetupInterface.php, line 40

Class

TfaSetupInterface
Interface TfaSetupInterface.

Namespace

Drupal\tfa\Plugin

Code

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