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