You are here

public function PrivateMessageInsertNewMessagesCommand::__construct in Private Message 8

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

Constructs a PrivateMessageInsertNewMessagesCommand object.

Parameters

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

Overrides PrivateMessageInsertMessagesCommand::__construct

File

src/Ajax/PrivateMessageInsertNewMessagesCommand.php, line 16

Class

PrivateMessageInsertNewMessagesCommand
Class to insert new private messages into a private message thread.

Namespace

Drupal\private_message\Ajax

Code

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