You are here

function CourseObject::getInstanceId in Course 8.3

Same name and namespace in other branches
  1. 8.2 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::getInstanceId()
  2. 3.x 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

15 calls to CourseObject::getInstanceId()
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.
CourseObjectNode::deleteInstance in modules/course_content/src/Course/Object/CourseObjectNode.php
Destroy the node instance.
CourseObjectNode::freeze in modules/course_content/src/Course/Object/CourseObjectNode.php
Freeze data to persist over cloning/exporting.
CourseObjectNode::getWarnings in modules/course_content/src/Course/Object/CourseObjectNode.php
Show a warning if this object has an instance, but the node does not exist.

... See full list

File

src/Entity/CourseObject.php, line 635

Class

CourseObject
Parent abstract base class of all course objects.

Namespace

Drupal\course\Entity

Code

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