getSettingElement($form, $form_state); $themes = $this->provider->getThemes(); $version = $form_state->getValue('cdn_jsdelivr_version', $this->theme->getSetting('cdn_jsdelivr_version')); $setting->setProperty('suffix', '
'); $setting->setProperty('description', t('Choose the example Bootstrap Theme provided by Bootstrap or one of the many, many Bootswatch themes!', [ ':bootswatch' => 'https://bootswatch.com', ':bootstrap_theme' => 'https://getbootstrap.com/docs/3.3/examples/theme/', ])); $options = []; if (isset($themes[$version])) { foreach ($themes[$version] as $theme => $data) { $options[$theme] = $data['title']; } } $setting->setProperty('options', $options); } }