You are here

function GlobalTemplateCollectionManagerInterface::getLocalCollection in Courier 8

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

Locate, and optionally instantiate, a local template collection to associate a global template collection.

Parameters

\Drupal\courier\Entity\GlobalTemplateCollectionInterface $global_template_collection: A global template collection entity.

Return value

\Drupal\courier\TemplateCollectionInterface A template collection entity.

Throws

\Drupal\courier\Exception\GlobalTemplateCollectionException Thrown if passed global template collection is unsaved.

1 method overrides GlobalTemplateCollectionManagerInterface::getLocalCollection()
GlobalTemplateCollectionManager::getLocalCollection in src/Service/GlobalTemplateCollectionManager.php
Locate, and optionally instantiate, a local template collection to associate a global template collection.

File

src/Service/GlobalTemplateCollectionManagerInterface.php, line 86

Class

GlobalTemplateCollectionManagerInterface
Interface for the global template collection manager.

Namespace

Drupal\courier\Service

Code

function getLocalCollection(GlobalTemplateCollectionInterface $global_template_collection);