function CourseEnrollment::isComplete in Course 3.x
Same name and namespace in other branches
- 8.3 src/Entity/CourseEnrollment.php \Drupal\course\Entity\CourseEnrollment::isComplete()
- 8.2 src/Entity/CourseEnrollment.php \Drupal\course\Entity\CourseEnrollment::isComplete()
Check if the user has completed this course.
Return value
bool
File
- src/
Entity/ CourseEnrollment.php, line 367
Class
- CourseEnrollment
- Defines the profile entity class.
Namespace
Drupal\course\EntityCode
function isComplete() {
return (bool) $this
->get('complete')
->getString();
}