You are here

public function DomainSourceSettingsForm::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_source/src/Form/DomainSourceSettingsForm.php, line 58

Class

DomainSourceSettingsForm
Class DomainSourceSettingsForm.

Namespace

Drupal\domain_source\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('domain_source.settings')
    ->set('exclude_routes', $form_state
    ->getValue('exclude_routes'))
    ->save();
  parent::submitForm($form, $form_state);
}