diff --git a/core/modules/workspaces/workspaces.install b/core/modules/workspaces/workspaces.install index a738cf6657..cd7bf120f9 100644 --- a/core/modules/workspaces/workspaces.install +++ b/core/modules/workspaces/workspaces.install @@ -126,25 +126,5 @@ function workspaces_schema() { * Implements hook_update_last_removed(). */ function workspaces_update_last_removed() { - return 8802; -} - -/** - * Remove the Workspace Association entity storage if necessary. - */ -function workspaces_update_8803() { - $entity_definition_update_manager = \Drupal::entityDefinitionUpdateManager(); - $entity_type = $entity_definition_update_manager->getEntityType('workspace_association'); - - // We can't migrate the workspace association data if the entity type is not - // using its default storage. - // @see workspaces_post_update_move_association_data() - if ($entity_type && $entity_type->getHandlerClasses()['storage'] === 'Drupal\workspaces\WorkspaceAssociationStorage') { - \Drupal::state()->set('workspaces_update_8803.tables', [ - 'base_table' => $entity_type->getBaseTable(), - 'revision_table' => $entity_type->getRevisionTable(), - ]); - $entity_type->setStorageClass(ContentEntityNullStorage::class); - $entity_definition_update_manager->uninstallEntityType($entity_type); - } + return 8803; }