You are here

public function CloseBootstrap4ModalDialogCommand::render in Bootstrap 4 Modal 8

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

Return an array to be run through json_encode and sent to the client.

Overrides CloseDialogCommand::render

File

src/Ajax/CloseBootstrap4ModalDialogCommand.php, line 28

Class

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

Namespace

Drupal\bootstrap4_modal\Ajax

Code

public function render() {
  return [
    'command' => 'closeBootstrap4Dialog',
    'selector' => $this->selector,
    'persist' => $this->persist,
  ];
}