You are here

public function CloseDialogCommand::render in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Ajax/CloseDialogCommand.php \Drupal\Core\Ajax\CloseDialogCommand::render()

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

Overrides CommandInterface::render

File

core/lib/Drupal/Core/Ajax/CloseDialogCommand.php, line 47
Contains \Drupal\Core\Ajax\CloseDialogCommand.

Class

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

Namespace

Drupal\Core\Ajax

Code

public function render() {
  return array(
    'command' => 'closeDialog',
    'selector' => $this->selector,
    'persist' => $this->persist,
  );
}