You are here

public function CommerceRepeatOrderSettingsForm::submitForm in Commerce Repeat Order 8

Same name and namespace in other branches
  1. 8.2 src/Form/CommerceRepeatOrderSettingsForm.php \Drupal\commerce_repeat_order\Form\CommerceRepeatOrderSettingsForm::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/CommerceRepeatOrderSettingsForm.php, line 62

Class

CommerceRepeatOrderSettingsForm

Namespace

Drupal\commerce_repeat_order\Form

Code

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