function CourseObjectPoll::getTakeType in Course 3.x
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_poll/ src/ Plugin/ course/ CourseObject/ CourseObjectPoll.php, line 41
Class
- CourseObjectPoll
- Plugin annotation @CourseObject( id = "poll", label = "Poll", handlers = { "fulfillment" = "\Drupal\course_poll\Plugin\course\CourseObject\CourseObjectPollFulfillment" } )
Namespace
Drupal\course_poll\Plugin\course\CourseObjectCode
function getTakeType() {
return 'redirect';
}