Pull merge.
[yaffs-website] / web / core / lib / Drupal / Core / Ajax / CloseModalDialogCommand.php
1 <?php
2
3 namespace Drupal\Core\Ajax;
4
5 /**
6  * Defines an AJAX command that closes the currently visible modal dialog.
7  *
8  * @ingroup ajax
9  */
10 class CloseModalDialogCommand extends CloseDialogCommand {
11
12   /**
13    * Constructs a CloseModalDialogCommand object.
14    *
15    * @param bool $persist
16    *   (optional) Whether to persist the dialog in the DOM or not.
17    */
18   public function __construct($persist = FALSE) {
19     $this->selector = '#drupal-modal';
20     $this->persist = $persist;
21   }
22
23 }