You are here

public function PrivateMessageInsertMessagesCommand::__construct in Private Message 8

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

Construct a PrivateMessageInsertMessagesCommand object.

Parameters

string $insertType: The type of messages to be inserted in the page. Possible values:

  • new
  • previous.

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

2 calls to PrivateMessageInsertMessagesCommand::__construct()
PrivateMessageInsertNewMessagesCommand::__construct in src/Ajax/PrivateMessageInsertNewMessagesCommand.php
Constructs a PrivateMessageInsertNewMessagesCommand object.
PrivateMessageInsertPreviousMessagesCommand::__construct in src/Ajax/PrivateMessageInsertPreviousMessagesCommand.php
Constructs a PrivateMessageInsertPreviousMessagesCommand object.
2 methods override PrivateMessageInsertMessagesCommand::__construct()
PrivateMessageInsertNewMessagesCommand::__construct in src/Ajax/PrivateMessageInsertNewMessagesCommand.php
Constructs a PrivateMessageInsertNewMessagesCommand object.
PrivateMessageInsertPreviousMessagesCommand::__construct in src/Ajax/PrivateMessageInsertPreviousMessagesCommand.php
Constructs a PrivateMessageInsertPreviousMessagesCommand object.

File

src/Ajax/PrivateMessageInsertMessagesCommand.php, line 40

Class

PrivateMessageInsertMessagesCommand
Base class for Ajax command to insert messages into a private message thread.

Namespace

Drupal\private_message\Ajax

Code

public function __construct($insertType, $messages) {
  $this->insertType = $insertType;
  $this->messages = $messages;
}