You are here

function CourseObjectCommerce::thaw in Course 3.x

Overrides CourseObject::thaw

File

modules/course_commerce/src/Plugin/course/CourseObject/CourseObjectCommerce.php, line 112

Class

CourseObjectCommerce
Plugin annotation @CourseObject( id = "commerce", label = "Payment", )

Namespace

Drupal\course_commerce\Plugin\course\CourseObject

Code

function thaw($ice) {

  // Not creating a new product. Using this course.
  return $this
    ->getCourse()
    ->id();
}