function CourseObjectFulfillment::getGrade in Course 8.3
Same name and namespace in other branches
- 8.2 src/Entity/CourseObjectFulfillment.php \Drupal\course\Entity\CourseObjectFulfillment::getGrade()
- 3.x src/Entity/CourseObjectFulfillment.php \Drupal\course\Entity\CourseObjectFulfillment::getGrade()
Get this fulfillment's grade.
Return value
float A float value of the user's grade for this fulfillment.
File
- src/
Entity/ CourseObjectFulfillment.php, line 123
Class
- CourseObjectFulfillment
- Parent class for course object fulfillment. Unlike Course objects, this is not abstract and can be used when the fulfillment requirements are simple.
Namespace
Drupal\course\EntityCode
function getGrade() {
return $this
->getOption('grade_result');
}