public function TfaTestValidationPluginSetupPlugin::getOverview in Two-factor Authentication (TFA) 8
Plugin overview page.
Parameters
array $params: Parameters to setup the overview information.
Return value
array The overview form.
Overrides TfaSetupInterface::getOverview
File
- tests/
modules/ tfa_test_plugins/ src/ Plugin/ TfaSetup/ TfaTestValidationPluginSetupPlugin.php, line 117
Class
- TfaTestValidationPluginSetupPlugin
- TFA Test Validation Plugin Setup Plugin.
Namespace
Drupal\tfa_test_plugins\Plugin\TfaSetupCode
public function getOverview(array $params) {
return [
'heading' => [
'#type' => 'html_tag',
'#tag' => 'h2',
'#value' => $this
->t('TFA application'),
],
'link' => [
'#theme' => 'links',
'#links' => [
'admin' => [
'title' => !$params['enabled'] ? $this
->t('Set up application') : $this
->t('Reset application'),
'url' => Url::fromRoute('tfa.validation.setup', [
'user' => $params['account']
->id(),
'method' => $params['plugin_id'],
]),
],
],
],
];
}