You are here

public function StructureSyncForm::submitForm in Structure Sync 8

Same name and namespace in other branches
  1. 2.x src/Form/StructureSyncForm.php \Drupal\structure_sync\Form\StructureSyncForm::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/StructureSyncForm.php, line 67

Class

StructureSyncForm
Import and export form for content in structure, like taxonomy terms.

Namespace

Drupal\structure_sync\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('structure_sync.data')
    ->set('log', $form_state
    ->getValue('log'))
    ->save();
}