PrivateMessageUpdateUnreadThreadCountCommand.php in Private Message 8
File
src/Ajax/PrivateMessageUpdateUnreadThreadCountCommand.php
View source
<?php
namespace Drupal\private_message\Ajax;
use Drupal\Core\Ajax\CommandInterface;
class PrivateMessageUpdateUnreadThreadCountCommand implements CommandInterface {
protected $unreadThreadCount;
public function __construct($unreadThreadCount) {
$this->unreadThreadCount = $unreadThreadCount;
}
public function render() {
return [
'command' => 'privateMessageUpdateUnreadThreadCount',
'unreadThreadCount' => $this->unreadThreadCount,
];
}
}