You are here

public function CourierTemplate::render in Courier 2.x

Same name and namespace in other branches
  1. 8 src/Ajax/CourierTemplate.php \Drupal\courier\Ajax\CourierTemplate::render()

Implements \Drupal\Core\Ajax\CommandInterface::render().

Overrides CommandInterface::render

File

src/Ajax/CourierTemplate.php, line 54

Class

CourierTemplate
Defines a CourierTemplate AJAX command.

Namespace

Drupal\courier\Ajax

Code

public function render() {
  return [
    'command' => 'courierTemplate',
    'template_collection' => $this->templateCollection,
    'channel' => $this->channel,
    'operation' => $this->operation,
  ];
}