Commit e9330444 authored by jun's avatar jun
Browse files

MDL-70821 course: Deprecate course_section_cm_completion()

Deprecate \core_course_renderer::course_section_cm_completion(). It is
not being used anymore and is being replaced by
\core_renderer::activity_information().
parent 13f88df3
......@@ -425,6 +425,10 @@ class core_course_renderer extends plugin_renderer_base {
* If completion is manual, returns a form (with an icon inside) that allows user to
* toggle completion
*
* @deprecated since Moodle 3.11
* @todo MDL-71183 Final deprecation in Moodle 4.3.
* @see \core_renderer::activity_information
*
* @param stdClass $course course object
* @param completion_info $completioninfo completion info for the course, it is recommended
* to fetch once for all modules in course/section for performance
......@@ -434,6 +438,10 @@ class core_course_renderer extends plugin_renderer_base {
*/
public function course_section_cm_completion($course, &$completioninfo, cm_info $mod, $displayoptions = array()) {
global $CFG, $DB, $USER;
debugging(__FUNCTION__ . ' is deprecated and is being replaced by the activity_information output component.',
DEBUG_DEVELOPER);
$output = '';
$istrackeduser = $completioninfo->is_tracked_user($USER->id);
......
......@@ -46,6 +46,8 @@ renderer and course format renderer:
=== 3.11 ===
* A new callback xxx_coursemodule_definition_after_data that allows plugins to extend activity forms after the data is set.
* \core_course_renderer::course_section_cm_completion() has been deprecated. It is not being used anymore and is being replaced by
\core_renderer::activity_information().
=== 3.10 ===
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment