ClientCommand.php in Heartbeat 8
Namespace
Drupal\statusmessage\AjaxFile
modules/statusmessage/src/Ajax/ClientCommand.phpView source
<?php
namespace Drupal\statusmessage\Ajax;
use Drupal\Core\Ajax\CommandInterface;
class ClientCommand implements CommandInterface {
protected $message;
public function __construct($message) {
$this->message = $message;
}
public function render() {
return array(
'command' => 'generatePreview',
'url' => $this->message,
);
}
}
Classes
Name | Description |
---|---|
ClientCommand |