comparison core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
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 }