class CloseModalDialogCommand

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

Hierarchy

Expanded class hierarchy of CloseModalDialogCommand

File

drupal/core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php, line 15
Contains \Drupal\Core\Ajax\CloseModalDialogCommand.

Namespace

Drupal\Core\Ajax
View source
class CloseModalDialogCommand extends CloseDialogCommand {
  /**
   * Constructs a CloseModalDialogCommand object.
   */
  public function __construct() {
    $this->selector = '#drupal-modal';
  }
}

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
CloseDialogCommand::$selector protected property A CSS selector string of the dialog to close.
CloseDialogCommand::render public function Implements \Drupal\Core\Ajax\CommandInterface::render(). Overrides CommandInterface::render
CloseModalDialogCommand::__construct public function Constructs a CloseModalDialogCommand object. Overrides CloseDialogCommand::__construct