class SubCommentCommand in Heartbeat 8
Hierarchy
- class \Drupal\heartbeat\Ajax\SubCommentCommand implements CommandInterface
Expanded class hierarchy of SubCommentCommand
1 file declares its use of SubCommentCommand
- HeartbeatController.php in src/
Controller/ HeartbeatController.php
File
- src/
Ajax/ SubCommentCommand.php, line 12
Namespace
Drupal\heartbeat\AjaxView source
class SubCommentCommand implements CommandInterface {
protected $cid;
public function __construct($cid) {
$this->cid = $cid;
}
public function render() {
$jiggajiggawhat = 'null';
$stophere = 'please;';
return array(
'command' => 'myfavouritemethodintheworld',
'cid' => $this->cid,
);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SubCommentCommand:: |
protected | property | ||
SubCommentCommand:: |
public | function |
Return an array to be run through json_encode and sent to the client. Overrides CommandInterface:: |
|
SubCommentCommand:: |
public | function |