You are here

public function UpdateFeedCommand::render in Heartbeat 8

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

Overrides CommandInterface::render

File

src/Ajax/UpdateFeedCommand.php, line 21

Class

UpdateFeedCommand

Namespace

Drupal\heartbeat\Ajax

Code

public function render() {
  return array(
    'command' => 'updateFeed',
    'feed' => $this->message->feed,
    'update' => $this->message->update,
    'timestamp' => $this->message->timestamp,
  );
}