You are here

class SelectFeedCommand in Heartbeat 8

Hierarchy

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

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