public function CourseObjectUbercart::createInstance in Course 3.x
Don't create new products.
Overrides CourseObject::createInstance
File
- modules/
course_uc/ src/ Plugin/ course/ CourseObject/ CourseObjectUbercart.php, line 83
Class
- CourseObjectUbercart
- Plugin annotation @CourseObject( id = "ubercart", label = "Payment", )
Namespace
Drupal\course_uc\Plugin\course\CourseObjectCode
public function createInstance($node = NULL) {
if (!$this
->getInstanceId()) {
$this
->setOption('instance', $this
->getCourse()
->id());
}
}