You are here

function TemplateCollection::getTemplates in Courier 8

Same name and namespace in other branches
  1. 2.x 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 78

Class

TemplateCollection
Defines a local template collection entity.

Namespace

Drupal\courier\Entity

Code

function getTemplates() {
  return $this->templates
    ->referencedEntities();
}