You are here

public function EntityExportCsvSettings::submitForm in Entity Export CSV 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/EntityExportCsvSettings.php, line 211

Class

EntityExportCsvSettings
Define entity export csv settings form.

Namespace

Drupal\entity_export_csv\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $values = $form_state
    ->cleanValues()
    ->getValues();
  $this
    ->massageValues($values);
  $this
    ->getConfiguration()
    ->setData($values)
    ->save();
  parent::submitForm($form, $form_state);
}