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
Namespace
Drupal\statusmessage\AjaxCode
public function render() {
return array(
'command' => 'generatePreview',
'url' => $this->message,
);
}