function lingotek_update_8002 in Lingotek Translation 8.2
Same name and namespace in other branches
- 8 lingotek.install \lingotek_update_8002()
Update lingotek_profile definition after adding the lingotek prefix.
File
- ./
lingotek.install, line 187 - 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);
}