You are here

public function DefaultContentExtraSettingsForm::submitForm in Default Content Extras 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/DefaultContentExtraSettingsForm.php, line 57

Class

DefaultContentExtraSettingsForm
Class DefaultContentExtraSettingsForm.

Namespace

Drupal\default_content_extra\Form

Code

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