You are here

public function PrivateMessageInsertThreadCommand::render in Private Message 8.2

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

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

Overrides CommandInterface::render

File

src/Ajax/PrivateMessageInsertThreadCommand.php, line 32

Class

PrivateMessageInsertThreadCommand
Ajax command to insert a thread into the private message page.

Namespace

Drupal\private_message\Ajax

Code

public function render() {
  return [
    'command' => 'privateMessageInsertThread',
    'thread' => $this->thread,
  ];
}