Defines an AJAX command that closes the currently visible modal dialog.
Expanded class hierarchy of CloseModalDialogCommand
class CloseModalDialogCommand extends CloseDialogCommand {
/**
* Constructs a CloseModalDialogCommand object.
*/
public function __construct() {
$this->selector = '#drupal-modal';
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CloseDialogCommand:: |
protected | property | A CSS selector string of the dialog to close. | |
CloseDialogCommand:: |
public | function |
Implements \Drupal\Core\Ajax\CommandInterface::render(). Overrides CommandInterface:: |
|
CloseModalDialogCommand:: |
public | function |
Constructs a CloseModalDialogCommand object. Overrides CloseDialogCommand:: |