function CourseObject::getCourse in Course 3.x
Same name and namespace in other branches
- 8.3 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::getCourse()
- 8.2 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::getCourse()
Get the Course that contains this CourseObject.
Return value
1 call to CourseObject::getCourse()
- CourseObject::optionsSubmit in src/
Entity/ CourseObject.php - Save object configs to cache.
File
- src/
Entity/ CourseObject.php, line 732
Class
- CourseObject
- Parent abstract base class of all course objects.
Namespace
Drupal\course\EntityCode
function getCourse() {
return Course::load($this
->get('cid')
->getString());
}