You are here

public function AddressFieldsForm::submitForm in Ubercart 8.4

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

uc_store/src/Form/AddressFieldsForm.php, line 91

Class

AddressFieldsForm
Configure address field settings for this store.

Namespace

Drupal\uc_store\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('uc_store.settings')
    ->set('address_fields', $form_state
    ->getValue('fields'))
    ->save();
  parent::submitForm($form, $form_state);
}