You are here

public static function CourseObject::context in Course 3.x

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

Set the context of which course this course object belongs to.

The return parameters should be compliant with course_determine_context().

4 methods override CourseObject::context()
CourseObjectNode::context in modules/course_content/src/Course/Object/CourseObjectNode.php
Course context handler callback.
CourseObjectPoll::context in modules/course_poll/src/Plugin/course/CourseObject/CourseObjectPoll.php
Course context handler callback.
CourseObjectQuiz::context in modules/course_quiz/src/Plugin/course/CourseObject/CourseObjectQuiz.php
Course context handler callback.
CourseObjectWebform::context in modules/course_webform/src/Plugin/course/CourseObject/CourseObjectWebform.php
Set the context of which course this course object belongs to.

File

src/Entity/CourseObject.php, line 941

Class

CourseObject
Parent abstract base class of all course objects.

Namespace

Drupal\course\Entity

Code

public static function context() {
}