MDL-78926 course: Final deprecation of render_activity_information

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
This commit is contained in:
Daniel Ziegenberg 2025-02-10 14:00:57 +01:00
parent 3070ef8161
commit e405cf89a9
No known key found for this signature in database
GPG Key ID: 7E6F98FFADBEFD39
2 changed files with 5 additions and 11 deletions

View File

@ -3,3 +3,5 @@ notes:
core_course:
- message: Final removal of core_course\output\activity_information
type: removed
- message: Final deprecation of core_course_renderer\render_activity_information()
type: removed

View File

@ -1505,19 +1505,11 @@ class core_course_renderer extends plugin_renderer_base {
}
/**
* Renders the activity information.
*
* Defer to template.
*
* @deprecated since Moodle 4.3 MDL-78744
* @todo MDL-78926 This method will be deleted in Moodle 4.7
* @param \core_course\output\activity_information $page
* @return string html for the page
*/
public function render_activity_information(\core_course\output\activity_information $page) {
debugging('render_activity_information method is deprecated.', DEBUG_DEVELOPER);
$data = $page->export_for_template($this->output);
return $this->output->render_from_template('core_course/activity_info', $data);
#[\core\attribute\deprecated(null, since: '4.3', mdl: 'MDL-78744', final: true)]
public function render_activity_information() {
\core\deprecation::emit_deprecation_if_present([self::class, __FUNCTION__]);
}
/**