You are here

public function CourseObject::getStatus in Course 3.x

Same name and namespace in other branches
  1. 8.3 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::getStatus()
  2. 8.2 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::getStatus()

Get the user's status in this course object.

This is how an object would notify the user why they cannot proceed to the next step from the course outline. For example, if this was a quiz and they failed, this should let them know.

2 methods override CourseObject::getStatus()
CourseObjectManual::getStatus in modules/course_object_manual/src/Plugin/course/CourseObject/CourseObjectManual.php
Return a message about the user's status in this object, for when this object is hidden.
CourseObjectQuiz::getStatus in modules/course_quiz/src/Plugin/course/CourseObject/CourseObjectQuiz.php
Get the status of this quiz for the requirements list.

File

src/Entity/CourseObject.php, line 668

Class

CourseObject
Parent abstract base class of all course objects.

Namespace

Drupal\course\Entity

Code

public function getStatus() {
}