public function CourseObjectQuiz::getTakeType in Course 8.2
Same name and namespace in other branches
- 8.3 modules/course_quiz/src/Plugin/course/CourseObject/CourseObjectQuiz.php \Drupal\course_quiz\Plugin\course\CourseObject\CourseObjectQuiz::getTakeType()
- 3.x modules/course_quiz/src/Plugin/course/CourseObject/CourseObjectQuiz.php \Drupal\course_quiz\Plugin\course\CourseObject\CourseObjectQuiz::getTakeType()
How should this course object be executed?
- iframe: display an iframe with getTakeUrl() in it
- popup: launch getTakeUrl() in a popup
- modal: launch getTakeUrl() in a modal
- content: print the value from take() (or do whatever the module wants to do)
Overrides CourseObject::getTakeType
File
- modules/
course_quiz/ src/ Plugin/ course/ CourseObject/ CourseObjectQuiz.php, line 50
Class
- CourseObjectQuiz
- Plugin annotation @CourseObject( id = "quiz", label = "Quiz", handlers = { "fulfillment" = "\Drupal\course_quiz\Plugin\course\CourseObject\CourseObjectQuizFulfillment" } )
Namespace
Drupal\course_quiz\Plugin\course\CourseObjectCode
public function getTakeType() {
return 'redirect';
}