class PrivateMessageInsertNewMessagesCommand in Private Message 8
Same name and namespace in other branches
- 8.2 src/Ajax/PrivateMessageInsertNewMessagesCommand.php \Drupal\private_message\Ajax\PrivateMessageInsertNewMessagesCommand
Class to insert new private messages into a private message thread.
Hierarchy
- class \Drupal\private_message\Ajax\PrivateMessageInsertMessagesCommand implements CommandInterface
- class \Drupal\private_message\Ajax\PrivateMessageInsertNewMessagesCommand
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\AjaxView source
class PrivateMessageInsertNewMessagesCommand extends PrivateMessageInsertMessagesCommand {
/**
* Constructs a PrivateMessageInsertNewMessagesCommand object.
*
* @param string $messages
* The HTML for the messages to be inserted in the page.
*/
public function __construct($messages) {
parent::__construct('new', $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:: |
|
PrivateMessageInsertNewMessagesCommand:: |
public | function |
Constructs a PrivateMessageInsertNewMessagesCommand object. Overrides PrivateMessageInsertMessagesCommand:: |