You are here

function CourseObjectBroken::take in Course 3.x

Same name and namespace in other branches
  1. 8.3 src/Object/CourseObjectBroken.php \Drupal\course\Course\Object\CourseObjectBroken::take()
  2. 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

CourseObjectBroken

Namespace

Drupal\course\Course\Object

Code

function take() {
  return [
    '#markup' => t('This course object is misconfigured. Please contact the administrator.'),
  ];
}