You are here

public function GlobalTemplateCollectionManagerInterface::createLocalCollectionForGlobalCollection in Courier 2.x

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

Create a global collection and associate it with a template collection.

Create a global template collection and associate it with a 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::createLocalCollectionForGlobalCollection()
GlobalTemplateCollectionManager::createLocalCollectionForGlobalCollection in src/Service/GlobalTemplateCollectionManager.php
Create a global collection and associate it with a template collection.

File

src/Service/GlobalTemplateCollectionManagerInterface.php, line 75

Class

GlobalTemplateCollectionManagerInterface
Interface for the global template collection manager.

Namespace

Drupal\courier\Service

Code

public function createLocalCollectionForGlobalCollection(GlobalTemplateCollectionInterface $global_template_collection);