public function DomainThemeSwitchConfigForm::getThemeList in Domain Theme Switch 8
Function to get the list of installed themes.
Return value
array The complete theme registry data array.
1 call to DomainThemeSwitchConfigForm::getThemeList()
- DomainThemeSwitchConfigForm::buildForm in src/
Form/ DomainThemeSwitchConfigForm.php - Form constructor.
File
- src/
Form/ DomainThemeSwitchConfigForm.php, line 92
Class
- DomainThemeSwitchConfigForm
- Class DomainThemeSwitchConfigForm.
Namespace
Drupal\domain_theme_switch\FormCode
public function getThemeList() {
$themeName = [];
foreach ($this->themeHandler
->listInfo() as $key => $value) {
$themeName[$key] = $value->info['name'];
}
return $themeName;
}