public function GlobalTemplateCollection::getTemplate in Courier 2.x
Same name and namespace in other branches
- 8 src/Entity/GlobalTemplateCollection.php \Drupal\courier\Entity\GlobalTemplateCollection::getTemplate()
Get configuration for a single template type.
Parameters
string $entity_type_id: A template entity type ID.
Return value
mixed Mixed configuration for the template.
Overrides GlobalTemplateCollectionInterface::getTemplate
File
- src/
Entity/ GlobalTemplateCollection.php, line 78
Class
- GlobalTemplateCollection
- Defines a sync-able template collection.
Namespace
Drupal\courier\EntityCode
public function getTemplate($entity_type_id) {
$templates = $this
->getTemplates();
return isset($templates[$entity_type_id]['content']) ? $templates[$entity_type_id]['content'] : NULL;
}