You are here

public function PrivateMessageInboxUpdateCommand::__construct in Private Message 8

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

Constructs a PrivateMessageInboxUpdateCommand object.

Parameters

array $threadIds: The thread IDs, in the order that they should appear when the inbox is updated.

array $newThreads: The HTML for the messages to be inserted in the page.

File

src/Ajax/PrivateMessageInboxUpdateCommand.php, line 35

Class

PrivateMessageInboxUpdateCommand
Ajax command to update the private message inbox block.

Namespace

Drupal\private_message\Ajax

Code

public function __construct(array $threadIds, array $newThreads) {
  $this->threadIds = $threadIds;
  $this->newThreads = $newThreads;
}