public function TemplateCollection::getTemplates in Courier 2.x
Same name and namespace in other branches
- 8 src/Entity/TemplateCollection.php \Drupal\courier\Entity\TemplateCollection::getTemplates()
Get all templates associated with this collections.
Return value
\Drupal\courier\ChannelInterface[] An array of template entities.
Overrides TemplateCollectionInterface::getTemplates
2 calls to TemplateCollection::getTemplates()
- TemplateCollection::getTemplate in src/
Entity/ TemplateCollection.php - Get template with a channel entity type.
- TemplateCollection::removeTemplate in src/
Entity/ TemplateCollection.php - Removes a template with the channel entity type.
File
- src/
Entity/ TemplateCollection.php, line 77
Class
- TemplateCollection
- Defines a local template collection entity.
Namespace
Drupal\courier\EntityCode
public function getTemplates() {
return $this->templates
->referencedEntities();
}