You are here

function CourseObject::getInstanceId in Course 3.x

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

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

Return value

string

25 calls to CourseObject::getInstanceId()
CourseObject::getOptionsSummary in src/Entity/CourseObject.php
Get core options summary.
CourseObject::save in src/Entity/CourseObject.php
Apply configuration from session and let objects create their instances before saving the course object.
CourseObjectBook::grade in modules/course_book/src/Plugin/course/CourseObject/CourseObjectBook.php
Grade (track) the book based on the fulfillment data.
CourseObjectCommerce::createInstance in modules/course_commerce/src/Plugin/course/CourseObject/CourseObjectCommerce.php
Don't create new products.
CourseObjectNode::deleteInstance in modules/course_content/src/Course/Object/CourseObjectNode.php
Destroy the node instance.

... See full list

File

src/Entity/CourseObject.php, line 696

Class

CourseObject
Parent abstract base class of all course objects.

Namespace

Drupal\course\Entity

Code

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