function CourseObject::getComponentName in Course 8.2
Same name and namespace in other branches
- 8.3 src/Entity/CourseObject.php \Drupal\course\Entity\CourseObject::getComponentName()
- 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\EntityCode
function getComponentName() {
$handlers = course_get_handlers('object');
return $handlers[$this
->getComponent()]['label'];
}