You are here

public function ContentExportSettingForm::submitForm in Content Export YAML 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/ContentExportSettingForm.php, line 57

Class

ContentExportSettingForm
Class ContentExportSettingForm.

Namespace

Drupal\content_export_yaml\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  parent::submitForm($form, $form_state);
  $this
    ->config('content_export_yaml.contentexportsetting')
    ->set('path_export_content_folder', $form_state
    ->getValue('path_export_content_folder'))
    ->save();
}