class PrivateMessageUpdateUnreadThreadCountCommand in Private Message 8.2
Same name and namespace in other branches
- 8 src/Ajax/PrivateMessageUpdateUnreadThreadCountCommand.php \Drupal\private_message\Ajax\PrivateMessageUpdateUnreadThreadCountCommand
Ajax command to update the number of unread threads.
Hierarchy
- class \Drupal\private_message\Ajax\PrivateMessageUpdateUnreadThreadCountCommand implements CommandInterface
Expanded class hierarchy of PrivateMessageUpdateUnreadThreadCountCommand
1 file declares its use of PrivateMessageUpdateUnreadThreadCountCommand
- AjaxController.php in src/
Controller/ AjaxController.php
File
- src/
Ajax/ PrivateMessageUpdateUnreadThreadCountCommand.php, line 10
Namespace
Drupal\private_message\AjaxView source
class PrivateMessageUpdateUnreadThreadCountCommand implements CommandInterface {
/**
* The number of unread threads.
*
* @var int
*/
protected $unreadThreadCount;
/**
* Constructs a PrivateMessageMembersAutocompleteResponseCommand object.
*
* @param int $unreadThreadCount
* The number of unread threads.
*/
public function __construct($unreadThreadCount) {
$this->unreadThreadCount = $unreadThreadCount;
}
/**
* {@inheritdoc}
*/
public function render() {
return [
'command' => 'privateMessageUpdateUnreadThreadCount',
'unreadThreadCount' => $this->unreadThreadCount,
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PrivateMessageUpdateUnreadThreadCountCommand:: |
protected | property | The number of unread threads. | |
PrivateMessageUpdateUnreadThreadCountCommand:: |
public | function |
Return an array to be run through json_encode and sent to the client. Overrides CommandInterface:: |
|
PrivateMessageUpdateUnreadThreadCountCommand:: |
public | function | Constructs a PrivateMessageMembersAutocompleteResponseCommand object. |