You are here

public function CourseObject::take in Course 8.3

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

Course object entry point for taking. This method should return a value corresponding to the type set in getTakeType().

1 call to CourseObject::take()
CourseObject::takeObject in src/Entity/CourseObject.php
Take a course object.
4 methods override CourseObject::take()
CourseObjectBroken::take in src/Object/CourseObjectBroken.php
Course object entry point for taking. This method should return a value corresponding to the type set in getTakeType().
CourseObjectCertificate::take in modules/course_certificate/src/Plugin/course/CourseObject/CourseObjectCertificate.php
Course object entry point for taking. This method should return a value corresponding to the type set in getTakeType().
CourseObjectManual::take in modules/course_object_manual/src/Plugin/course/CourseObject/CourseObjectManual.php
Display status message as course content.
CourseObjectTest::take in modules/course_test/src/Plugin/course/CourseObject/CourseObjectTest.php
Course object entry point for taking. This method should return a value corresponding to the type set in getTakeType().

File

src/Entity/CourseObject.php, line 528

Class

CourseObject
Parent abstract base class of all course objects.

Namespace

Drupal\course\Entity

Code

public function take() {
  return t('This should be overridden by the module to return course content.');
}