You are here

function shortcut_uninstall in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/shortcut/shortcut.install \shortcut_uninstall()

Implements hook_uninstall().

File

core/modules/shortcut/shortcut.install, line 63
Install, update and uninstall functions for the shortcut module.

Code

function shortcut_uninstall() {

  // 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('seven')) {
    \Drupal::configFactory()
      ->getEditable('seven.settings')
      ->clear('third_party_settings.shortcut.module_link')
      ->save(TRUE);
  }
}