You are here

public function CourseObjectPoll::getReports in Course 8.3

Same name and namespace in other branches
  1. 8.2 modules/course_poll/src/Course/Object/CourseObjectPoll.php \Drupal\course_poll\Course\Object\CourseObjectPoll::getReports()

File

modules/course_poll/src/Course/Object/CourseObjectPoll.php, line 51

Class

CourseObjectPoll
Parent class for poll tracking.

Namespace

Drupal\course_poll\Course\Object

Code

public function getReports() {
  $reports = parent::getReports();
  $reports += array(
    'results' => array(
      'title' => 'Results',
    ),
    'all' => array(
      'title' => 'List votes',
    ),
  );
  return $reports;
}