You are here

public function ClientCommand::render in Heartbeat 8

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

Overrides CommandInterface::render

File

modules/statusmessage/src/Ajax/ClientCommand.php, line 13

Class

ClientCommand

Namespace

Drupal\statusmessage\Ajax

Code

public function render() {
  return array(
    'command' => 'generatePreview',
    'url' => $this->message,
  );
}