class CloseModalDialogCommand in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php \Drupal\Core\Ajax\CloseModalDialogCommand
- 9 core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php \Drupal\Core\Ajax\CloseModalDialogCommand
Defines an AJAX command that closes the currently visible modal dialog.
Hierarchy
- class \Drupal\Core\Ajax\CloseModalDialogCommand extends \Drupal\Core\Ajax\CloseDialogCommand
Expanded class hierarchy of CloseModalDialogCommand
Related topics
5 files declare their use of CloseModalDialogCommand
- AjaxCommandsTest.php in core/
tests/ Drupal/ Tests/ Core/ Ajax/ AjaxCommandsTest.php - EditorImageDialog.php in core/
modules/ editor/ src/ Form/ EditorImageDialog.php - EditorLinkDialog.php in core/
modules/ editor/ src/ Form/ EditorLinkDialog.php - EditorMediaDialog.php in core/
modules/ media/ src/ Form/ EditorMediaDialog.php - ViewsFormBase.php in core/
modules/ views_ui/ src/ Form/ Ajax/ ViewsFormBase.php
File
- core/
lib/ Drupal/ Core/ Ajax/ CloseModalDialogCommand.php, line 10
Namespace
Drupal\Core\AjaxView source
class CloseModalDialogCommand extends CloseDialogCommand {
/**
* Constructs a CloseModalDialogCommand object.
*
* @param bool $persist
* (optional) Whether to persist the dialog in the DOM or not.
*/
public function __construct($persist = FALSE) {
$this->selector = '#drupal-modal';
$this->persist = $persist;
}
}