function _gin_toolbar_get_admin_theme_setting in Gin Toolbar 8
Gets the admin theme setting.
Parameters
string $setting: Setting name.
Return value
mixed Return NULL if setting doesn't exist.
File
- ./
gin_toolbar.module, line 277 - gin_toolbar.module
Code
function _gin_toolbar_get_admin_theme_setting($setting) {
$admin_theme = \Drupal::configFactory()
->get('system.theme')
->get('admin');
if (empty($admin_theme)) {
$admin_theme = \Drupal::configFactory()
->get('system.theme')
->get('default');
}
return theme_get_setting($setting, $admin_theme);
}