You are here

public function BulkUpdateExcludeForm::submitForm in Bulk Update Fields 8.2

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/BulkUpdateExcludeForm.php, line 156

Class

BulkUpdateExcludeForm
Class BulkUpdateExcludeForm.

Namespace

Drupal\bulk_update_fields\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('bulk_update_fields.settings')
    ->set('exclude', $form_state
    ->getValue('table'))
    ->save();
}