Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CloseModalDialogCommand.php

function CloseModalDialogCommand::__construct

Constructs a CloseModalDialogCommand object.

Parameters

bool $persist: (optional) Whether to persist the dialog in the DOM or not.

Overrides CloseDialogCommand::__construct

File

core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php, line 18

Class

CloseModalDialogCommand
Defines an AJAX command that closes the currently visible modal dialog.

Namespace

Drupal\Core\Ajax

Code

public function __construct($persist = FALSE) {
    $this->selector = '#drupal-modal';
    $this->persist = $persist;
}
RSS feed
Powered by Drupal