You are here

private function BasicSetup::tfaFullSetupSteps in Two-factor Authentication (TFA) 8

Steps eligible for TFA setup.

1 call to BasicSetup::tfaFullSetupSteps()
BasicSetup::buildForm in src/Form/BasicSetup.php
Form constructor.

File

src/Form/BasicSetup.php, line 382

Class

BasicSetup
TFA setup form router.

Namespace

Drupal\tfa\Form

Code

private function tfaFullSetupSteps() {
  $config = $this
    ->config('tfa.settings');
  $steps = [
    $config
      ->get('default_validation_plugin'),
  ];
  $login_plugins = $config
    ->get('login_plugins');
  foreach ($login_plugins as $login_plugin) {
    $steps[] = $login_plugin;
  }

  // @todo Add send plugins.
  return $steps;
}