function CloseModalDialogCommand::__construct
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php \Drupal\Core\Ajax\CloseModalDialogCommand::__construct()
- 10 core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php \Drupal\Core\Ajax\CloseModalDialogCommand::__construct()
- 11.x core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php \Drupal\Core\Ajax\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\AjaxCode
public function __construct($persist = FALSE) {
$this->selector = '#drupal-modal';
$this->persist = $persist;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.