public function GlobalTemplateCollection::getTemplate in Courier 8
Same name and namespace in other branches
- 2.x 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 72
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;
}