Constructs a CloseDialogCommand object.
Parameters
string $selector:
A CSS selector string of the dialog to close.
File
- drupal/core/lib/Drupal/Core/Ajax/CloseDialogCommand.php, line 28
- Contains \Drupal\Core\Ajax\CloseDialogCommand.
Class
- CloseDialogCommand
- Defines an AJAX command that closes the current active dialog.
Namespace
Drupal\Core\Ajax
Code
public function __construct($selector = NULL) {
$this->selector = $selector ? $selector : '#drupal-modal';
}