You are here

function lingotek_update_8002 in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 lingotek.install \lingotek_update_8002()

Update lingotek_profile definition after adding the lingotek prefix.

File

./lingotek.install, line 165
Install, update and uninstall functions for the Lingotek module.

Code

function lingotek_update_8002() {
  $manager = \Drupal::entityDefinitionUpdateManager();
  $entity_type = $manager
    ->getEntityType('profile');
  $entity_type
    ->set('id', 'lingotek_profile');
  $manager
    ->installEntityType($entity_type);
}