You are here

public function CourseObjectManual::take in Course 3.x

Same name and namespace in other branches
  1. 8.3 modules/course_object_manual/src/Plugin/course/CourseObject/CourseObjectManual.php \Drupal\course_object_manual\Plugin\course\CourseObject\CourseObjectManual::take()
  2. 8.2 modules/course_object_manual/src/Plugin/course/CourseObject/CourseObjectManual.php \Drupal\course_object_manual\Plugin\course\CourseObject\CourseObjectManual::take()

Display status message as course content.

Overrides CourseObject::take

File

modules/course_object_manual/src/Plugin/course/CourseObject/CourseObjectManual.php, line 23

Class

CourseObjectManual
Plugin annotation @CourseObject( id = "manual", label = "Manual step", handlers = { "fulfillment" = "\Drupal\course\Entity\CourseObjectFulfillment" } )

Namespace

Drupal\course_object_manual\Plugin\course\CourseObject

Code

public function take() {
  return [
    '#plain_text' => $this
      ->getStatus(),
  ];
}