You are here

public function CourseObject::take in Course 3.x

Same name and namespace in other branches
  1. 8.3 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::take()
  2. 8.2 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.
7 methods override CourseObject::take()
CourseObjectAttendance::take in modules/course_attendance/src/Plugin/course/CourseObject/CourseObjectAttendance.php
Course object entry point for taking. This method should return a value corresponding to the type set in getTakeType().
CourseObjectBroken::take in src/Course/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().
CourseObjectCommerce::take in modules/course_commerce/src/Plugin/course/CourseObject/CourseObjectCommerce.php
Display the add to cart button, or a message that it was already purchased.
CourseObjectManual::take in modules/course_object_manual/src/Plugin/course/CourseObject/CourseObjectManual.php
Display status message as course content.

... See full list

File

src/Entity/CourseObject.php, line 571

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.');
}