public function CourseObjectWebform::getReports in Course 8.2
Same name and namespace in other branches
- 8.3 modules/course_webform/src/Plugin/course/CourseObject/CourseObjectWebform.php \Drupal\course_webform\Plugin\course\CourseObject\CourseObjectWebform::getReports()
- 3.x modules/course_webform/src/Plugin/course/CourseObject/CourseObjectWebform.php \Drupal\course_webform\Plugin\course\CourseObject\CourseObjectWebform::getReports()
Let the course object provide its own reports.
Return value
array An array indexed by report key, containing 'title' which is the menu link in the course object reports.
Overrides CourseObject::getReports
File
- modules/
course_webform/ src/ Plugin/ course/ CourseObject/ CourseObjectWebform.php, line 55
Class
- CourseObjectWebform
- Plugin annotation @CourseObject( id = "webform", label = "Webform", handlers = { "fulfillment" = "\Drupal\course_webform\Plugin\course\CourseObject\CourseObjectWebformFulfillment" } )
Namespace
Drupal\course_webform\Plugin\course\CourseObjectCode
public function getReports() {
$reports = parent::getReports();
$reports += array(
'submissions' => array(
'title' => t('Submissions'),
),
'analysis' => array(
'title' => t('Analysis'),
),
'download' => array(
'title' => t('Download'),
),
);
return $reports;
}