function shortcut_themes_installed

Same name in other branches
  1. 9 core/modules/shortcut/shortcut.module \shortcut_themes_installed()
  2. 8.9.x core/modules/shortcut/shortcut.module \shortcut_themes_installed()

Implements hook_themes_installed().

File

core/modules/shortcut/shortcut.module, line 387

Code

function shortcut_themes_installed($theme_list) {
    // 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 (in_array('claro', $theme_list, TRUE)) {
        \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.