public function FormModeThemeSwitcherForm::getAvailableThemeTypeOptions in Form mode manager 8.2
1 call to FormModeThemeSwitcherForm::getAvailableThemeTypeOptions()
- 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 70
Class
- FormModeThemeSwitcherForm
- Configure Form for Form Mode Manager theme switcher settings.
Namespace
Drupal\form_mode_manager_theme_switcher\FormCode
public function getAvailableThemeTypeOptions() {
$options = [
'default' => $this
->t('Default Theme (@theme)', [
'@theme' => $this->configFactory
->get('system.theme')
->get('default'),
]),
'admin' => $this
->t('Administration theme (@theme)', [
'@theme' => $this->configFactory
->get('system.theme')
->get('admin'),
]),
'_custom' => $this
->t('Specific theme'),
];
return $options;
}