You are here

public function CourseAppearanceSettingsForm::submitForm in Course 3.x

Same name and namespace in other branches
  1. 8.3 src/Form/CourseAppearanceSettingsForm.php \Drupal\course\Form\CourseAppearanceSettingsForm::submitForm()
  2. 8.2 src/Form/CourseAppearanceSettingsForm.php \Drupal\course\Form\CourseAppearanceSettingsForm::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/CourseAppearanceSettingsForm.php, line 47

Class

CourseAppearanceSettingsForm
Class CourseSettingsAppearanceForm.

Namespace

Drupal\course\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('course.settings.appearance')
    ->setData($form_state
    ->getValues())
    ->save();
  parent::submitForm($form, $form_state);
}