public function CourseReportSettingsForm::buildForm in Course 8.2
Same name and namespace in other branches
- 8.3 src/Form/CourseReportSettingsForm.php \Drupal\course\Form\CourseReportSettingsForm::buildForm()
- 3.x src/Form/CourseReportSettingsForm.php \Drupal\course\Form\CourseReportSettingsForm::buildForm()
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides ConfigFormBase::buildForm
File
- src/
Form/ CourseReportSettingsForm.php, line 24
Class
- CourseReportSettingsForm
- Class CourseObjectSettingsForm.
Namespace
Drupal\course\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form['header']['#markup'] = '<p>' . t('Here, you can manage the settings related to course progress and completion.') . '</p>';
$form['header']['#markup'] .= '<p>' . t('Fields may be added to the course progress tracker entity for future functionality.') . '</p>';
return parent::buildForm($form, $form_state);
}