You are here

public function TfaBasePlugin::submitForm in Two-factor Authentication (TFA) 8

Submit 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 Whether plugin form handling is complete. Plugins should return FALSE to invoke multi-step.

1 method overrides TfaBasePlugin::submitForm()
TfaTrustedBrowser::submitForm in src/Plugin/TfaLogin/TfaTrustedBrowser.php
Submit form.

File

src/Plugin/TfaBasePlugin.php, line 147

Class

TfaBasePlugin
Base plugin class.

Namespace

Drupal\tfa\Plugin

Code

public function submitForm(array $form, FormStateInterface &$form_state) {
  return $this->isValid;
}