You are here

public function DomainPathSettingsForm::submitForm in Domain Path 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

src/Form/DomainPathSettingsForm.php, line 135

Class

DomainPathSettingsForm
Class DomainPathSettingsForm.

Namespace

Drupal\domain_path\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('domain_path.settings')
    ->set('entity_types', $form_state
    ->getValue('entity_types'))
    ->set('language_method', $form_state
    ->getValue('language_method'))
    ->set('alias_title', $form_state
    ->getValue('alias_title'))
    ->set('hide_path_alias_ui', $form_state
    ->getValue('hide_path_alias_ui'))
    ->save();
  parent::submitForm($form, $form_state);
}