public function CourseAppearanceSettingsForm::submitForm in Course 8.3
Same name and namespace in other branches
- 8.2 src/Form/CourseAppearanceSettingsForm.php \Drupal\course\Form\CourseAppearanceSettingsForm::submitForm()
- 3.x 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\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('course.settings.appearance')
->setData($form_state
->getValues())
->save();
parent::submitForm($form, $form_state);
}