function shortcut_themes_installed
shortcut_themes_installed($theme_list)
Implements hook_themes_installed().
File
- core/modules/shortcut/shortcut.module, line 432
- Allows users to manage customizable lists of shortcut links.
Code
function shortcut_themes_installed($theme_list) { if (in_array('seven', $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 (\Drupal::moduleHandler()->moduleExists('shortcut')) { \Drupal::configFactory()->getEditable('seven.settings')->set('third_party_settings.shortcut.module_link', TRUE)->save(TRUE); } } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!shortcut!shortcut.module/function/shortcut_themes_installed/8.1.x