You are here

public function PrivateMessageInboxInsertThreadsCommand::__construct in Private Message 8.2

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

Constructs a PrivateMessageInboxInsertThreadsCommand object.

Parameters

string $threads: The HTML for the threads to be inserted in the page.

bool $has_next: A boolean to know if there are more threads after.

File

src/Ajax/PrivateMessageInboxInsertThreadsCommand.php, line 34

Class

PrivateMessageInboxInsertThreadsCommand
Ajax Command to insert private message inbox threads.

Namespace

Drupal\private_message\Ajax

Code

public function __construct($threads, $has_next) {
  $this->threads = $threads;
  $this->hasNext = $has_next;
}