You are here

protected function ThemeSwitcherRuleForm::getThemeOptions in Theme Switcher Rules 8

Return an array with all the themes.

Return value

array An array with all the themes.

1 call to ThemeSwitcherRuleForm::getThemeOptions()
ThemeSwitcherRuleForm::form in src/Form/ThemeSwitcherRuleForm.php
Gets the actual form array to be built.

File

src/Form/ThemeSwitcherRuleForm.php, line 266

Class

ThemeSwitcherRuleForm
Form handler for the ThemeSwitcherRule add and edit forms.

Namespace

Drupal\theme_switcher\Form

Code

protected function getThemeOptions() {
  $output[''] = '- None -';
  foreach ($this->themeHandler
    ->listInfo() as $key => $value) {
    $output[$key] = $value
      ->getName();
  }
  return $output;
}