You are here

public function CourierTemplate::__construct in Courier 8

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

Constructs a \Drupal\courier\Ajax\CourierTemplate object.

Parameters

int $template_collection: A template collection entity ID.

string $channel: Channel entity type ID.

string $operation: Operation to execute on client. Allowed values: 'open', 'close'.

File

src/Ajax/CourierTemplate.php, line 45

Class

CourierTemplate
Defines a CourierTemplate AJAX command.

Namespace

Drupal\courier\Ajax

Code

public function __construct($template_collection, $channel, $operation) {
  $this->template_collection = $template_collection;
  $this->channel = $channel;
  $this->operation = $operation;
}