You are here

function scheduled_transitions_update_8004 in Scheduled Transitions 8

Same name and namespace in other branches
  1. 2.x scheduled_transitions.install \scheduled_transitions_update_8004()

Updates data_table in scheduled_transition entity definition.

File

./scheduled_transitions.install, line 57

Code

function scheduled_transitions_update_8004() : void {
  $entityTypeId = 'scheduled_transition';
  $definitionUpdateManager = \Drupal::entityDefinitionUpdateManager();
  $entityType = $definitionUpdateManager
    ->getEntityType($entityTypeId);
  $entityType
    ->set('data_table', $entityTypeId);
  $definitionUpdateManager
    ->updateEntityType($entityType);
}