class SelectFeedCommand in Heartbeat 8
Hierarchy
- class \Drupal\heartbeat\Ajax\SelectFeedCommand implements CommandInterface
Expanded class hierarchy of SelectFeedCommand
2 files declare their use of SelectFeedCommand
- HeartbeatFeedForm.php in src/
Form/ HeartbeatFeedForm.php - StatusForm.php in modules/
statusmessage/ src/ Form/ StatusForm.php
File
- src/
Ajax/ SelectFeedCommand.php, line 12
Namespace
Drupal\heartbeat\AjaxView source
class SelectFeedCommand implements CommandInterface {
protected $message;
public function __construct($message) {
$this->message = $message;
}
public function render() {
return array(
'command' => 'selectFeed',
'feed' => $this->message,
);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SelectFeedCommand:: |
protected | property | ||
SelectFeedCommand:: |
public | function |
Return an array to be run through json_encode and sent to the client. Overrides CommandInterface:: |
|
SelectFeedCommand:: |
public | function |