GeysirCloseModalDialogCommand.php in Geysir 8
Namespace
Drupal\geysir\AjaxFile
src/Ajax/GeysirCloseModalDialogCommand.phpView source
<?php
namespace Drupal\geysir\Ajax;
use Drupal\Core\Ajax\CloseDialogCommand;
/**
* Defines an AJAX command that closes the currently visible Geysir modal.
*
* @ingroup ajax
*/
class GeysirCloseModalDialogCommand extends CloseDialogCommand {
/**
* Constructs a GeysirCloseModalDialogCommand object.
*
* @param bool $persist
* (optional) Whether to persist the dialog in the DOM or not.
*/
public function __construct($persist = FALSE) {
$this->selector = GeysirOpenModalDialogCommand::MODAL_SELECTOR;
$this->persist = $persist;
}
}
Classes
Name | Description |
---|---|
GeysirCloseModalDialogCommand | Defines an AJAX command that closes the currently visible Geysir modal. |