MDL-78168 mod_assign: Deprecate assign_files::preprocess

This commit is contained in:
Andrew Nicols 2023-05-09 13:47:07 +08:00
parent adddcf394f
commit d66f81d2e1
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14

View File

@ -734,10 +734,7 @@ class assign_files implements renderable {
$button->reset_formats(); $button->reset_formats();
$this->portfolioform = $button->to_html(PORTFOLIO_ADD_TEXT_LINK); $this->portfolioform = $button->to_html(PORTFOLIO_ADD_TEXT_LINK);
} }
} }
$this->preprocess($this->dir, $filearea, $component);
} }
/** /**
@ -746,9 +743,11 @@ class assign_files implements renderable {
* @param array $dir * @param array $dir
* @param string $filearea * @param string $filearea
* @param string $component * @param string $component
* @deprecated since Moodle 4.3
*/ */
public function preprocess($dir, $filearea, $component) { public function preprocess($dir, $filearea, $component) {
// Nothing to do here any more. // Nothing to do here any more.
debugging('The preprocess method has been deprecated since Moodle 4.3.', DEBUG_DEVELOPER);
} }
/** /**