You are here

public function SetDialogOptionCommand::render in Zircon Profile 8

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

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

Overrides CommandInterface::render

File

core/lib/Drupal/Core/Ajax/SetDialogOptionCommand.php, line 59
Contains \Drupal\Core\Ajax\SetDialogOptionCommand.

Class

SetDialogOptionCommand
Defines an AJAX command that sets jQuery UI dialog properties.

Namespace

Drupal\Core\Ajax

Code

public function render() {
  return array(
    'command' => 'setDialogOption',
    'selector' => $this->selector,
    'optionName' => $this->optionName,
    'optionValue' => $this->optionValue,
  );
}