You are here

public function TfaSetup::getForm in Two-factor Authentication (TFA) 8

Get plugin 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.

int $reset: Reset the data or not.

Return value

array Form API array.

File

src/TfaSetup.php, line 53

Class

TfaSetup
TFA Setup.

Namespace

Drupal\tfa

Code

public function getForm(array $form, FormStateInterface &$form_state, $reset = 0) {
  return $this->setupPlugin
    ->getSetupForm($form, $form_state, $reset);
}