function GlobalTemplateCollectionManager::__construct in Courier 8
Same name and namespace in other branches
- 2.x src/Service/GlobalTemplateCollectionManager.php \Drupal\courier\Service\GlobalTemplateCollectionManager::__construct()
Constructs a global template collection manager.
Parameters
\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_factory: The key value store to use.
\Drupal\courier\Service\CourierManagerInterface $courier_manager: The courier manager.
File
- src/
Service/ GlobalTemplateCollectionManager.php, line 40
Class
- GlobalTemplateCollectionManager
- The global template collection manager.
Namespace
Drupal\courier\ServiceCode
function __construct(KeyValueFactoryInterface $key_value_factory, CourierManagerInterface $courier_manager) {
$this->keyValueStore = $key_value_factory
->get('courier.template_collection_global');
$this->courierManager = $courier_manager;
}