You are here

public function FormModeThemeSwitcherForm::getActiveThemeOptions in Form mode manager 8.2

1 call to FormModeThemeSwitcherForm::getActiveThemeOptions()
FormModeThemeSwitcherForm::buildFormPerFormMode in modules/form_mode_theme_switcher/src/Form/FormModeThemeSwitcherForm.php
Build form element per form modes linked by given entity type.

File

modules/form_mode_theme_switcher/src/Form/FormModeThemeSwitcherForm.php, line 83

Class

FormModeThemeSwitcherForm
Configure Form for Form Mode Manager theme switcher settings.

Namespace

Drupal\form_mode_manager_theme_switcher\Form

Code

public function getActiveThemeOptions() {
  $options = [];
  foreach ($this->configFactory
    ->get('system.theme.data') as $theme_name => $theme_extension) {
    $options[$theme_name] = $theme_extension->info['name'];
  }
  return $options;
}