Hi,
We have changed the coursecompletedmessage string. Please see the screen the attached image:
We want to print student name but {$a->firstname} is not working on email. Can anyone guide us how to print username ? Thanks
Before using an extra variable, you need to add the variable in the completion/completion_completion.php file (line:183)
$a = [
'coursename' => get_course_display_name_for_list($course),
'courselink' => (string) new moodle_url('/course/view.php', array('id' => $course->id)), --];
++'firstname' => \core_user::get_user($data->userid)->firstname];