function Settings::getAdminTheme

Same name and namespace in other branches
  1. 11.x core/themes/admin/src/Settings.php \Drupal\admin\Settings::getAdminTheme()

Return the active administration theme.

Return value

string The active administration theme name.

File

core/themes/admin/src/Settings.php, line 208

Class

Settings
Service to handle overridden user settings.

Namespace

Drupal\admin

Code

private function getAdminTheme() : string {
  $admin_theme = $this->configFactory
    ->get('system.theme')
    ->get('admin');
  if (empty($admin_theme)) {
    $admin_theme = $this->configFactory
      ->get('system.theme')
      ->get('default');
  }
  return $admin_theme;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.