You are here

function CourseObject::getComponentName in Course 8.2

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

Get the object component title for this course object.

Return value

string

File

src/Entity/CourseObject.php, line 680

Class

CourseObject
Parent abstract base class of all course objects.

Namespace

Drupal\course\Entity

Code

function getComponentName() {
  $handlers = course_get_handlers('object');
  return $handlers[$this
    ->getComponent()]['label'];
}