You are here

public function GlobalTemplateCollectionManagerInterface::getLocalCollection in Courier 2.x

Same name and namespace in other branches
  1. 8 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 90

Class

GlobalTemplateCollectionManagerInterface
Interface for the global template collection manager.

Namespace

Drupal\courier\Service

Code

public function getLocalCollection(GlobalTemplateCollectionInterface $global_template_collection);