You are here

class SubCommentCommand in Heartbeat 8

Hierarchy

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\Ajax
View 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

Namesort descending Modifiers Type Description Overrides
SubCommentCommand::$cid protected property
SubCommentCommand::render public function Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render
SubCommentCommand::__construct public function