Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CloseDialogCommand.php

function CloseDialogCommand::render

Overrides CommandInterface::render

File

core/lib/Drupal/Core/Ajax/CloseDialogCommand.php, line 42

Class

CloseDialogCommand
Defines an AJAX command that closes the current active dialog.

Namespace

Drupal\Core\Ajax

Code

public function render() {
    return [
        'command' => 'closeDialog',
        'selector' => $this->selector,
        'persist' => $this->persist,
    ];
}
RSS feed
Powered by Drupal