You are here

function CourseObject::getComponent in Course 3.x

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

Get the object component for this course object.

Return value

string

File

src/Entity/CourseObject.php, line 751

Class

CourseObject
Parent abstract base class of all course objects.

Namespace

Drupal\course\Entity

Code

function getComponent() {
  return $this
    ->getOption('object_type');
}