You are here

public function ImportConfigForm::submitForm in GatherContent 8.3

Same name and namespace in other branches
  1. 8.5 src/Form/ImportConfigForm.php \Drupal\gathercontent\Form\ImportConfigForm::submitForm()
  2. 8.4 src/Form/ImportConfigForm.php \Drupal\gathercontent\Form\ImportConfigForm::submitForm()

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/ImportConfigForm.php, line 65

Class

ImportConfigForm
Class ImportConfigForm.

Namespace

Drupal\gathercontent\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('gathercontent.import')
    ->set('node_default_status', $form_state
    ->getValue('node_default_status'))
    ->set('node_update_method', $form_state
    ->getValue('node_update_method'))
    ->save();
  parent::submitForm($form, $form_state);
}