I built a custom configuration form with the following settings
The contents of my aaep_settings_main.routing.yml
my_settings:
path: '/admin/config/system/my_settings'
defaults:
_form: 'Drupal\my_settings\Form\SettingsForm'
requirements:
_permission: 'administer site configuration'
And then inside my SettingsForm.php I have
class SettingsForm extends ConfigFormBase {
protected function getEditableConfigNames() {
return array(
'my_settings.settings',
);
}
public function submitForm(array&$form, FormStateInterface $form_state) {
$this->config('my_settings.settings')
->set('test', $form_state->getValue('test'))
->save();
}
public function buildForm(array $form, FormStateInterface $form_state){
$config = $this->config('my_settings.settings');
$form['test'] = [
'#type' => 'textfield',
'#title' => t('Test'),
'#default_value' => $config->get('test'),
];
}
It works just fine, but when I visit the page it's using the admin theme instead of the regular theme. I'm assuming that's because it's using a configuration form and extending ConfigFormBase. I'm assuming that that's the default behavior. But is there a way to override that and have my configuration page use my site theme instead?