You are here

public function CourseObject::getTakeType in Course 3.x

Same name and namespace in other branches
  1. 8.3 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::getTakeType()
  2. 8.2 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::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)
1 call to CourseObject::getTakeType()
CourseObject::takeObject in src/Entity/CourseObject.php
Take a course object.
7 methods override CourseObject::getTakeType()
CourseObjectCertificate::getTakeType in modules/course_certificate/src/Plugin/course/CourseObject/CourseObjectCertificate.php
How should this course object be executed?
CourseObjectCommerce::getTakeType in modules/course_commerce/src/Plugin/course/CourseObject/CourseObjectCommerce.php
How should this course object be executed?
CourseObjectNode::getTakeType in modules/course_content/src/Course/Object/CourseObjectNode.php
Simple node course object behavior is to just redirect to the node.
CourseObjectPoll::getTakeType in modules/course_poll/src/Plugin/course/CourseObject/CourseObjectPoll.php
How should this course object be executed?
CourseObjectQuiz::getTakeType in modules/course_quiz/src/Plugin/course/CourseObject/CourseObjectQuiz.php
How should this course object be executed?

... See full list

File

src/Entity/CourseObject.php, line 563

Class

CourseObject
Parent abstract base class of all course objects.

Namespace

Drupal\course\Entity

Code

public function getTakeType() {
  return 'content';
}