Skip to content

Commit

Permalink
feat(SHS-5986): Add update hook to remove config to prevent cim errors
Browse files Browse the repository at this point in the history
  • Loading branch information
codechefmarc committed Jan 7, 2025
1 parent af1ad63 commit 7ed3a0a
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1185,3 +1185,17 @@ function su_humsci_profile_update_9720() {
...$block_info,
])->save();
}

/**
* Uninstall hs_paragraphs_between and paragraphs_browser.
*/
function su_humsci_profile_update_9721() {
$config_factory = \Drupal::configFactory();
$config_factory->getEditable('paragraphs_browser.paragraphs_browser_type.content')->delete();

\Drupal::service('module_installer')->uninstall([
'hs_paragraphs_between',
'paragraphs_browser',
]);

}

0 comments on commit 7ed3a0a

Please sign in to comment.