function shortcut_install
Implements hook_install().
File
- 
              core/
modules/ shortcut/ shortcut.install, line 52  
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('claro')) {
    \Drupal::configFactory()->getEditable("claro.settings")
      ->set('third_party_settings.shortcut.module_link', TRUE)
      ->save(TRUE);
  }
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.