You are here

public function CourseUbercartSettingsForm::submitForm in Course 3.x

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

modules/course_uc/src/Form/CourseUbercartSettingsForm.php, line 37

Class

CourseUbercartSettingsForm
Ubercart course settings form.

Namespace

Drupal\course_uc\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {

  // Retrieve the configuration.
  $this->configFactory
    ->getEditable('course_uc.settings')
    ->setData($form_state
    ->cleanValues()
    ->getValues())
    ->save();
  parent::submitForm($form, $form_state);
}