public function miniorange_2faController::openModalForm in Google Authenticator / 2 Factor Authentication - 2FA 8.2
Same name and namespace in other branches
- 8 src/Controller/miniorange_2faController.php \Drupal\miniorange_2fa\Controller\miniorange_2faController::openModalForm()
Return value
1 string reference to 'miniorange_2faController::openModalForm'
File
- src/
Controller/ miniorange_2faController.php, line 31
Class
Namespace
Drupal\miniorange_2fa\ControllerCode
public function openModalForm() {
$response = new AjaxResponse();
$modal_form = $this->formBuilder
->getForm('\\Drupal\\miniorange_2fa\\Form\\MoAuthRemoveAccount');
$response
->addCommand(new OpenModalDialogCommand('Remove Account', $modal_form, [
'width' => '800',
]));
return $response;
}