123456789101112131415161718192021222324252627282930 |
- <?php
- namespace Drupal\heartbeat\Ajax;
- /**
- * Created by IntelliJ IDEA.
- * User: logicp
- * Date: 5/28/17
- * Time: 11:38 PM
- */
- use Drupal\Core\Ajax\CommandInterface;
- class UpdateFeedCommand implements CommandInterface {
- protected $message;
- public function __construct($message) {
- $this->message = $message;
- }
- public function render() {
- return array(
- 'command' => 'updateFeed',
- 'feed' => $this->message->feed,
- 'update' => $this->message->update,
- 'timestamp' => $this->message->timestamp,
- );
- }
- }
|