function shortcut_install in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/shortcut/shortcut.install \shortcut_install()
Implements hook_install().
File
- core/
modules/ shortcut/ shortcut.install, line 52 - Install, update and uninstall functions for the shortcut module.
Code
function shortcut_install() {
// Theme settings are not configuration entities and cannot depend on modules
// so to set a module-specific setting, we need to set it with logic.
if (\Drupal::service('theme_handler')
->themeExists('seven')) {
\Drupal::configFactory()
->getEditable('seven.settings')
->set('third_party_settings.shortcut.module_link', TRUE)
->save(TRUE);
}
}