You are here

public function PrivateMessageLoadNewMessagesCommand::render in Private Message 8.2

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

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

Overrides CommandInterface::render

File

src/Ajax/PrivateMessageLoadNewMessagesCommand.php, line 15

Class

PrivateMessageLoadNewMessagesCommand
Ajax Command to trigger a load of new private messages into a thread.

Namespace

Drupal\private_message\Ajax

Code

public function render() {
  return [
    'command' => 'loadNewPrivateMessages',
  ];
}