protected function BasicOverview::tfaPluginSetupFormOverview in Two-factor Authentication (TFA) 8
Get TFA basic setup action links for use on overview page.
Parameters
array $plugin: Plugin definition.
object $account: Current user account.
bool $enabled: Tfa data for current user.
Return value
array Render array
1 call to BasicOverview::tfaPluginSetupFormOverview()
- BasicOverview::buildForm in src/
Form/ BasicOverview.php - Form constructor.
File
- src/
Form/ BasicOverview.php, line 227
Class
- BasicOverview
- TFA Basic account setup overview page.
Namespace
Drupal\tfa\FormCode
protected function tfaPluginSetupFormOverview(array $plugin, $account, $enabled) {
$params = [
'enabled' => $enabled,
'account' => $account,
'plugin_id' => $plugin['id'],
];
try {
return $this->tfaSetup
->createInstance($plugin['setupPluginId'], [
'uid' => $account
->id(),
])
->getOverview($params);
} catch (\Exception $e) {
return [];
}
}