Skip to content

Commit

Permalink
UHF-10713: Fix update hook if module is not installed of config is
Browse files Browse the repository at this point in the history
missing
  • Loading branch information
hyrsky committed Dec 17, 2024
1 parent fa87b6a commit 1d42064
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helfi_api_base.install
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 1d42064

Please sign in to comment.