You are here

public function PrivateMessageInboxUpdateCommand::render in Private Message 8.2

Same name and namespace in other branches
  1. 8 src/Ajax/PrivateMessageInboxUpdateCommand.php \Drupal\private_message\Ajax\PrivateMessageInboxUpdateCommand::render()

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

Overrides CommandInterface::render

File

src/Ajax/PrivateMessageInboxUpdateCommand.php, line 43

Class

PrivateMessageInboxUpdateCommand
Ajax command to update the private message inbox block.

Namespace

Drupal\private_message\Ajax

Code

public function render() {
  return [
    'command' => 'privateMessageInboxUpdate',
    'threadIds' => $this->threadIds,
    'newThreads' => $this->newThreads,
  ];
}