You are here

public function PrivateMessageInboxInsertThreadsCommand::render in Private Message 8.2

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

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

Overrides CommandInterface::render

File

src/Ajax/PrivateMessageInboxInsertThreadsCommand.php, line 42

Class

PrivateMessageInboxInsertThreadsCommand
Ajax Command to insert private message inbox threads.

Namespace

Drupal\private_message\Ajax

Code

public function render() {
  return [
    'command' => 'insertInboxOldPrivateMessageThreads',
    'threads' => $this->threads,
    'hasNext' => $this->hasNext,
  ];
}