class ClientCommand in Heartbeat 8
Hierarchy
- class \Drupal\statusmessage\Ajax\ClientCommand implements CommandInterface
Expanded class hierarchy of ClientCommand
1 file declares its use of ClientCommand
- StatusForm.php in modules/
statusmessage/ src/ Form/ StatusForm.php
File
- modules/
statusmessage/ src/ Ajax/ ClientCommand.php, line 6
Namespace
Drupal\statusmessage\AjaxView source
class ClientCommand implements CommandInterface {
protected $message;
public function __construct($message) {
$this->message = $message;
}
public function render() {
return array(
'command' => 'generatePreview',
'url' => $this->message,
);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ClientCommand:: |
protected | property | ||
ClientCommand:: |
public | function |
Return an array to be run through json_encode and sent to the client. Overrides CommandInterface:: |
|
ClientCommand:: |
public | function |