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