You are here

public function CourseReportSettingsForm::submitForm in Course 8.2

Same name and namespace in other branches
  1. 8.3 src/Form/CourseReportSettingsForm.php \Drupal\course\Form\CourseReportSettingsForm::submitForm()
  2. 3.x 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\Form

Code

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