You are here

function CourseObjectFulfillment::getInstanceId in Course 3.x

Same name and namespace in other branches
  1. 8.3 src/Entity/CourseObjectFulfillment.php \Drupal\course\Entity\CourseObjectFulfillment::getInstanceId()
  2. 8.2 src/Entity/CourseObjectFulfillment.php \Drupal\course\Entity\CourseObjectFulfillment::getInstanceId()

Get the instance ID. This could be the external component ID, a Node ID...

Return value

string

File

src/Entity/CourseObjectFulfillment.php, line 205

Class

CourseObjectFulfillment
Parent class for course object fulfillment. Unlike Course objects, this is not abstract and can be used when the fulfillment requirements are simple.

Namespace

Drupal\course\Entity

Code

function getInstanceId() {
  return $this
    ->getOption('instance');
}