You are here

function courier_update_8001 in Courier 8

Same name and namespace in other branches
  1. 2.x courier.install \courier_update_8001()

Install global template collection entity.

File

./courier.install, line 33

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);
}