diff --git a/helfi_api_base.install b/helfi_api_base.install index c4105a0..ca57c80 100644 --- a/helfi_api_base.install +++ b/helfi_api_base.install @@ -343,8 +343,12 @@ function _helfi_api_base_process_links(ContentEntityInterface $entity, string $f * UHF-10713 Remove VersionChecker. */ function helfi_api_base_update_9023(): void { + if (!\Drupal::moduleHandler()->moduleExists('rest')) { + return; + } + \Drupal::entityTypeManager() ->getStorage('rest_resource_config') ->load('helfi_debug_package_version') - ->delete(); + ?->delete(); }