public function PrivateMessageInsertPreviousMessagesCommand::__construct in Private Message 8.2
Same name and namespace in other branches
- 8 src/Ajax/PrivateMessageInsertPreviousMessagesCommand.php \Drupal\private_message\Ajax\PrivateMessageInsertPreviousMessagesCommand::__construct()
Constructs a PrivateMessageInsertPreviousMessagesCommand object.
Parameters
string $messages: The HTML for the messages to be inserted in the page.
int $messagesCount: The number of messages.
bool $has_next: A boolean to know if there are more messages after.
Overrides PrivateMessageInsertMessagesCommand::__construct
File
- src/
Ajax/ PrivateMessageInsertPreviousMessagesCommand.php, line 27
Class
- PrivateMessageInsertPreviousMessagesCommand
- Class to insert older private messages into a private message thread.
Namespace
Drupal\private_message\AjaxCode
public function __construct($messages, $messagesCount, $has_next) {
parent::__construct('previous', $messages, $messagesCount);
$this->hasNext = $has_next;
}