function courier_update_8001 in Courier 2.x
Same name and namespace in other branches
- 8 courier.install \courier_update_8001()
Install global template collection entity.
File
- ./
courier.install, line 38 - Install functions for courier.
Code
function courier_update_8001() {
$entity_manager = \Drupal::entityTypeManager();
$update_manager = \Drupal::entityDefinitionUpdateManager();
$entity_type = $entity_manager
->getDefinition('template_collection_global');
$update_manager
->installEntityType($entity_type);
}