function CourseObjectFulfillment::getCourseObject in Course 8.2
Same name and namespace in other branches
- 8.3 src/Entity/CourseObjectFulfillment.php \Drupal\course\Entity\CourseObjectFulfillment::getCourseObject()
- 3.x src/Entity/CourseObjectFulfillment.php \Drupal\course\Entity\CourseObjectFulfillment::getCourseObject()
Get this fulfillment's course object.
Return value
File
- src/
Entity/ CourseObjectFulfillment.php, line 132
Class
- CourseObjectFulfillment
- Parent class for course object fulfillment. Unlike Course objects, this is not abstract and can be used when the fulfillment requirements are simple.
Namespace
Drupal\course\EntityCode
function getCourseObject() {
return CourseObject::load($this
->get('coid')
->getString());
}