public function PrivateMessageInsertMessagesCommand::render in Private Message 8
Same name and namespace in other branches
- 8.2 src/Ajax/PrivateMessageInsertMessagesCommand.php \Drupal\private_message\Ajax\PrivateMessageInsertMessagesCommand::render()
Return an array to be run through json_encode and sent to the client.
Overrides CommandInterface::render
File
- src/
Ajax/ PrivateMessageInsertMessagesCommand.php, line 48
Class
- PrivateMessageInsertMessagesCommand
- Base class for Ajax command to insert messages into a private message thread.
Namespace
Drupal\private_message\AjaxCode
public function render() {
return [
'command' => 'insertPrivateMessages',
'insertType' => $this->insertType,
'messages' => $this->messages,
];
}