You are here

public function PrivateMessageInsertPreviousMessagesCommand::__construct in Private Message 8

Same name and namespace in other branches
  1. 8.2 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.

Overrides PrivateMessageInsertMessagesCommand::__construct

File

src/Ajax/PrivateMessageInsertPreviousMessagesCommand.php, line 16

Class

PrivateMessageInsertPreviousMessagesCommand
Class to insert older private messages into a private message thread.

Namespace

Drupal\private_message\Ajax

Code

public function __construct($messages) {
  parent::__construct('previous', $messages);
}