You are here

public static function TemplateCollectionInterface::getTemplateCollectionForTemplate in Courier 8

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

Locates the template collection which references a template.

Parameters

\Drupal\courier\ChannelInterface $template: A template entity.

Return value

\Drupal\courier\Entity\TemplateCollection|NULL A template collection entity, or NULL if the template is an orphan.

1 method overrides TemplateCollectionInterface::getTemplateCollectionForTemplate()
TemplateCollection::getTemplateCollectionForTemplate in src/Entity/TemplateCollection.php
Locates the template collection which references a template.

File

src/TemplateCollectionInterface.php, line 116
Contains \Drupal\courier\TemplateCollectionInterface.

Class

TemplateCollectionInterface
Provides an interface defining a courier_template_collection entity.

Namespace

Drupal\courier

Code

public static function getTemplateCollectionForTemplate(ChannelInterface $template);