You are here

public function CloseBootstrap4ModalDialogCommand::__construct in Bootstrap 4 Modal 8

Same name and namespace in other branches
  1. 2.x src/Ajax/CloseBootstrap4ModalDialogCommand.php \Drupal\bootstrap4_modal\Ajax\CloseBootstrap4ModalDialogCommand::__construct()

Constructs a CloseModalDialogCommand object.

Parameters

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

Overrides CloseModalDialogCommand::__construct

File

src/Ajax/CloseBootstrap4ModalDialogCommand.php, line 20

Class

CloseBootstrap4ModalDialogCommand
Defines an AJAX command that closes the currently visible modal dialog.

Namespace

Drupal\bootstrap4_modal\Ajax

Code

public function __construct($persist = FALSE) {
  parent::__construct($persist);
  $this->selector = '#drupal-bootstrap4-modal';
}