You are here

public function miniorange_samlController::openModalForm in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8

1 string reference to 'miniorange_samlController::openModalForm'
miniorange_saml.routing.yml in ./miniorange_saml.routing.yml
miniorange_saml.routing.yml

File

src/Controller/miniorange_samlController.php, line 95
Contains \Drupal\miniorange_saml\Controller\DefaultController.

Class

miniorange_samlController
Default controller for the miniorange_saml module.

Namespace

Drupal\miniorange_saml\Controller

Code

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