public function ContentTypeCourse::getUserScore in Opigno course 8
Same name and namespace in other branches
- 3.x src/Plugin/OpignoGroupManagerContentType/ContentTypeCourse.php \Drupal\opigno_course\Plugin\OpignoGroupManagerContentType\ContentTypeCourse::getUserScore()
Get the score of the user for a specific entity.
Parameters
int $user_id: The user ID.
int $entity_id: The entity ID.
Return value
float|false The score between 0 and 1. FALSE if no score found.
Overrides ContentTypeInterface::getUserScore
File
- src/
Plugin/ OpignoGroupManagerContentType/ ContentTypeCourse.php, line 55
Class
- ContentTypeCourse
- Class ContentTypeCourse.
Namespace
Drupal\opigno_course\Plugin\OpignoGroupManagerContentTypeCode
public function getUserScore($user_id, $entity_id) {
// TODO: Implement getUserScore() method.
return 1;
}