You are here

class SelectFeedCommandss in Heartbeat 8

Hierarchy

Expanded class hierarchy of SelectFeedCommandss

File

src/Ajax/oldcommand.php, line 7

Namespace

Drupal\heartbeat
View source
class SelectFeedCommandss implements CommandInterface {
  protected $message;

  // Constructs a ReadMessageCommand object.
  public function __construct($message) {
    $this->message = $message;
  }

  // Implements Drupal\Core\Ajax\CommandInterface:render().
  public function render() {
    return array(
      'command' => 'selectFeed',
      'feed' => $this->message,
    );
  }
  public static function hello() {
    return 'jigga';
  }

}

Members

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