function shortcut_uninstall
Same name in other branches
- 7.x modules/shortcut/shortcut.install \shortcut_uninstall()
- 9 core/modules/shortcut/shortcut.install \shortcut_uninstall()
- 8.9.x core/modules/shortcut/shortcut.install \shortcut_uninstall()
- 10 core/modules/shortcut/shortcut.install \shortcut_uninstall()
Implements hook_uninstall().
File
-
core/
modules/ shortcut/ shortcut.install, line 66
Code
function shortcut_uninstall() : void {
// Theme settings are not configuration entities and cannot depend on modules
// so to unset a module-specific setting, we need to unset it with logic.
if (\Drupal::service('theme_handler')->themeExists('claro')) {
\Drupal::configFactory()->getEditable("claro.settings")
->clear('third_party_settings.shortcut')
->save(TRUE);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.