public function SettingsForm::submitForm in Domain Access 8
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides ConfigFormBase::submitForm
File
- domain_config_ui/
src/ Form/ SettingsForm.php, line 75
Class
- SettingsForm
- Class SettingsForm.
Namespace
Drupal\domain_config_ui\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
// Clean session values.
unset($_SESSION['domain_config_ui_domain']);
unset($_SESSION['domain_config_ui_language']);
$path_string = $form_state
->getValue('path_pages');
$path_array = $this
->explodePathSettings($path_string);
$this
->config('domain_config_ui.settings')
->set('remember_domain', $form_state
->getValue('remember_domain'))
->set('path_pages', $this
->implodePathSettings($path_array))
->save();
parent::submitForm($form, $form_state);
}