You are here

class PrivateMessageInsertNewMessagesCommand in Private Message 8.2

Same name and namespace in other branches
  1. 8 src/Ajax/PrivateMessageInsertNewMessagesCommand.php \Drupal\private_message\Ajax\PrivateMessageInsertNewMessagesCommand

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

Hierarchy

Expanded class hierarchy of PrivateMessageInsertNewMessagesCommand

1 file declares its use of PrivateMessageInsertNewMessagesCommand
AjaxController.php in src/Controller/AjaxController.php

File

src/Ajax/PrivateMessageInsertNewMessagesCommand.php, line 8

Namespace

Drupal\private_message\Ajax
View source
class PrivateMessageInsertNewMessagesCommand extends PrivateMessageInsertMessagesCommand {

  /**
   * Constructs a PrivateMessageInsertNewMessagesCommand object.
   *
   * @param string $messages
   *   The HTML for the messages to be inserted in the page.
   * @param int $messagesCount
   *   The number of messages.
   */
  public function __construct($messages, $messagesCount) {
    parent::__construct('new', $messages, $messagesCount);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PrivateMessageInsertMessagesCommand::$insertType protected property The type of messages to be inserted in the page.
PrivateMessageInsertMessagesCommand::$messages protected property The HTML for the messages to be inserted in the page.
PrivateMessageInsertMessagesCommand::render public function Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render 1
PrivateMessageInsertNewMessagesCommand::__construct public function Constructs a PrivateMessageInsertNewMessagesCommand object. Overrides PrivateMessageInsertMessagesCommand::__construct