You are here

public function GeysirCloseModalDialogCommand::__construct in Geysir 8

Constructs a GeysirCloseModalDialogCommand object.

Parameters

bool $persist: (optional) Whether to persist the dialog in the DOM or not.

Overrides CloseDialogCommand::__construct

File

src/Ajax/GeysirCloseModalDialogCommand.php, line 20

Class

GeysirCloseModalDialogCommand
Defines an AJAX command that closes the currently visible Geysir modal.

Namespace

Drupal\geysir\Ajax

Code

public function __construct($persist = FALSE) {
  $this->selector = GeysirOpenModalDialogCommand::MODAL_SELECTOR;
  $this->persist = $persist;
}