MDL-72438 question: Final deprecations

This commit is contained in:
Mathew May
2024-03-11 13:26:18 +08:00
parent 38a3310c92
commit 886d86623e
38 changed files with 266 additions and 1655 deletions
+2 -16
View File
@@ -42,24 +42,10 @@ class core_question_renderer extends plugin_renderer_base {
}
/**
* Render an icon, optionally with the word 'Preview' beside it, to preview
* a given question.
* @param int $questionid the id of the question to be previewed.
* @param context $context the context in which the preview is happening.
* Must be a course or category context.
* @param bool $showlabel if true, show the word 'Preview' after the icon.
* If false, just show the icon.
* @deprecated since Moodle 4.0
* @see qbank_previewquestion\output\renderer
* @todo Final deprecation on Moodle 4.4 MDL-72438
*/
public function question_preview_link($questionid, context $context, $showlabel) {
debugging('Function question_preview_link() has been deprecated and moved to qbank_previewquestion plugin,
Please use qbank_previewquestion renderer.', DEBUG_DEVELOPER);
return $this->page->get_renderer('qbank_previewquestion')->question_preview_link(
$questionid, $context, $showlabel
);
public function question_preview_link() {
throw new coding_exception(__FUNCTION__ . '() has been removed.');
}
/**