You are here

ClientCommand.php in Heartbeat 8

File

modules/statusmessage/src/Ajax/ClientCommand.php
View source
<?php

namespace Drupal\statusmessage\Ajax;

use Drupal\Core\Ajax\CommandInterface;
class ClientCommand implements CommandInterface {
  protected $message;
  public function __construct($message) {
    $this->message = $message;
  }
  public function render() {
    return array(
      'command' => 'generatePreview',
      'url' => $this->message,
    );
  }

}

Classes

Namesort descending Description
ClientCommand