public function CloseBootstrap4ModalDialogCommand::render in Bootstrap 4 Modal 2.x
Same name and namespace in other branches
- 8 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 30
Class
- CloseBootstrap4ModalDialogCommand
- Defines an AJAX command that closes the currently visible modal dialog.
Namespace
Drupal\bootstrap4_modal\AjaxCode
public function render() {
return [
'command' => 'closeBootstrap4Dialog',
'selector' => $this->selector,
'persist' => $this->persist,
];
}