public function CourierTemplate::__construct in Courier 2.x
Same name and namespace in other branches
- 8 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\AjaxCode
public function __construct($template_collection, $channel, $operation) {
$this->templateCollection = $template_collection;
$this->channel = $channel;
$this->operation = $operation;
}