function CourseObjectCommerce::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_commerce/ src/ Plugin/ course/ CourseObject/ CourseObjectCommerce.php, line 27
Class
- CourseObjectCommerce
- Plugin annotation @CourseObject( id = "commerce", label = "Payment", )
Namespace
Drupal\course_commerce\Plugin\course\CourseObjectCode
function getTakeType() {
return 'content';
}