MDL-64783 analytics: Updated insight subject for course_enrolments
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
20d7f527b0
commit
02dfbf44a7
@@ -50,6 +50,17 @@ abstract class course_enrolments extends \core_analytics\local\target\binary {
|
||||
return '\core\analytics\analyser\student_enrolments';
|
||||
}
|
||||
|
||||
/**
|
||||
* Overwritten to show a simpler language string.
|
||||
*
|
||||
* @param int $modelid
|
||||
* @param \context $context
|
||||
* @return string
|
||||
*/
|
||||
public function get_insight_subject(int $modelid, \context $context) {
|
||||
return get_string('studentsatriskincourse', 'moodle', $context->get_context_name(false));
|
||||
}
|
||||
|
||||
/**
|
||||
* Discards courses that are not yet ready to be used for training or prediction.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user