You are here

function CourseObjectUbercart::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_uc/src/Plugin/course/CourseObject/CourseObjectUbercart.php, line 27

Class

CourseObjectUbercart
Plugin annotation @CourseObject( id = "ubercart", label = "Payment", )

Namespace

Drupal\course_uc\Plugin\course\CourseObject

Code

function getTakeType() {
  return 'content';
}