You are here

public function PrivateMessageUpdateUnreadThreadCountCommand::render in Private Message 8

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

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

Overrides CommandInterface::render

File

src/Ajax/PrivateMessageUpdateUnreadThreadCountCommand.php, line 32

Class

PrivateMessageUpdateUnreadThreadCountCommand
Ajax command to update the number of unread threads.

Namespace

Drupal\private_message\Ajax

Code

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