You are here

public function miniorange_2faController::openModalForm in Google Authenticator / 2 Factor Authentication - 2FA 8

Same name and namespace in other branches
  1. 8.2 src/Controller/miniorange_2faController.php \Drupal\miniorange_2fa\Controller\miniorange_2faController::openModalForm()
1 string reference to 'miniorange_2faController::openModalForm'
miniorange_2fa.routing.yml in ./miniorange_2fa.routing.yml
miniorange_2fa.routing.yml

File

src/Controller/miniorange_2faController.php, line 37

Class

miniorange_2faController

Namespace

Drupal\miniorange_2fa\Controller

Code

public function openModalForm() {
  $response = new AjaxResponse();
  $modal_form = $this->formBuilder
    ->getForm('\\Drupal\\miniorange_2fa\\Form\\miniorange_2fa_RemoveLicense');
  $response
    ->addCommand(new OpenModalDialogCommand('Remove Account', $modal_form, [
    'width' => '800',
  ]));
  return $response;
}