3 namespace Drupal\Core\Ajax;
6 * Defines an AJAX command that closes the currently visible modal dialog.
10 class CloseModalDialogCommand extends CloseDialogCommand {
13 * Constructs a CloseModalDialogCommand object.
15 * @param bool $persist
16 * (optional) Whether to persist the dialog in the DOM or not.
18 public function __construct($persist = FALSE) {
19 $this->selector = '#drupal-modal';
20 $this->persist = $persist;