You are here

public function NodeExportConfigForm::submitForm in Node export 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/NodeExportConfigForm.php, line 72

Class

NodeExportConfigForm
Provides a Node Export form.

Namespace

Drupal\node_Export\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this->configFactory
    ->getEditable('node_export.settings')
    ->set('node_export_import', $form_state
    ->getValue('node_export_existing'))
    ->set('node_export_format', $form_state
    ->getValue('node_export_format'))
    ->save();
  parent::submitForm($form, $form_state);
}