function CourseObjectBroken::take in Course 3.x
Same name and namespace in other branches
- 8.3 src/Object/CourseObjectBroken.php \Drupal\course\Course\Object\CourseObjectBroken::take()
- 8.2 src/Object/CourseObjectBroken.php \Drupal\course\Course\Object\CourseObjectBroken::take()
Course object entry point for taking. This method should return a value corresponding to the type set in getTakeType().
Overrides CourseObject::take
File
- src/
Course/ Object/ CourseObjectBroken.php, line 9
Class
Namespace
Drupal\course\Course\ObjectCode
function take() {
return [
'#markup' => t('This course object is misconfigured. Please contact the administrator.'),
];
}