function TemplateCollectionInterface::setTemplate in Courier 8
Same name and namespace in other branches
- 2.x src/TemplateCollectionInterface.php \Drupal\courier\TemplateCollectionInterface::setTemplate()
Sets a template for this collection.
Collections can accept one of each channel entity type.
Parameters
\Drupal\courier\ChannelInterface $template: A template entity.
Return value
\Drupal\courier\TemplateCollectionInterface Return this object for chaining.
1 method overrides TemplateCollectionInterface::setTemplate()
- TemplateCollection::setTemplate in src/
Entity/ TemplateCollection.php - Sets a template for this collection.
File
- src/
TemplateCollectionInterface.php, line 86 - Contains \Drupal\courier\TemplateCollectionInterface.
Class
- TemplateCollectionInterface
- Provides an interface defining a courier_template_collection entity.
Namespace
Drupal\courierCode
function setTemplate(ChannelInterface $template);