class PrivateMessageInsertPreviousMessagesCommand in Private Message 8
Same name and namespace in other branches
- 8.2 src/Ajax/PrivateMessageInsertPreviousMessagesCommand.php \Drupal\private_message\Ajax\PrivateMessageInsertPreviousMessagesCommand
Class to insert older private messages into a private message thread.
Hierarchy
- class \Drupal\private_message\Ajax\PrivateMessageInsertMessagesCommand implements CommandInterface
- class \Drupal\private_message\Ajax\PrivateMessageInsertPreviousMessagesCommand
Expanded class hierarchy of PrivateMessageInsertPreviousMessagesCommand
1 file declares its use of PrivateMessageInsertPreviousMessagesCommand
- AjaxController.php in src/
Controller/ AjaxController.php
File
- src/
Ajax/ PrivateMessageInsertPreviousMessagesCommand.php, line 8
Namespace
Drupal\private_message\AjaxView source
class PrivateMessageInsertPreviousMessagesCommand extends PrivateMessageInsertMessagesCommand {
/**
* Constructs a PrivateMessageInsertPreviousMessagesCommand object.
*
* @param string $messages
* The HTML for the messages to be inserted in the page.
*/
public function __construct($messages) {
parent::__construct('previous', $messages);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PrivateMessageInsertMessagesCommand:: |
protected | property | The type of messages to be inserted in the page. | |
PrivateMessageInsertMessagesCommand:: |
protected | property | The HTML for the messages to be inserted in the page. | |
PrivateMessageInsertMessagesCommand:: |
public | function |
Return an array to be run through json_encode and sent to the client. Overrides CommandInterface:: |
|
PrivateMessageInsertPreviousMessagesCommand:: |
public | function |
Constructs a PrivateMessageInsertPreviousMessagesCommand object. Overrides PrivateMessageInsertMessagesCommand:: |