You are here

function CourseObject::getReports in Course 3.x

Same name and namespace in other branches
  1. 8.3 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::getReports()
  2. 8.2 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::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.

3 calls to CourseObject::getReports()
CourseObjectPoll::getReports in modules/course_poll/src/Plugin/course/CourseObject/CourseObjectPoll.php
Let the course object provide its own reports.
CourseObjectQuiz::getReports in modules/course_quiz/src/Plugin/course/CourseObject/CourseObjectQuiz.php
Let the course object provide its own reports.
CourseObjectWebform::getReports in modules/course_webform/src/Plugin/course/CourseObject/CourseObjectWebform.php
Let the course object provide its own reports.
3 methods override CourseObject::getReports()
CourseObjectPoll::getReports in modules/course_poll/src/Plugin/course/CourseObject/CourseObjectPoll.php
Let the course object provide its own reports.
CourseObjectQuiz::getReports in modules/course_quiz/src/Plugin/course/CourseObject/CourseObjectQuiz.php
Let the course object provide its own reports.
CourseObjectWebform::getReports in modules/course_webform/src/Plugin/course/CourseObject/CourseObjectWebform.php
Let the course object provide its own reports.

File

src/Entity/CourseObject.php, line 831

Class

CourseObject
Parent abstract base class of all course objects.

Namespace

Drupal\course\Entity

Code

function getReports() {
  return array(
    'default' => array(
      'title' => 'Overview',
    ),
  );
}