MDL-87426 core: Remove the deprecated output_select_html()

This commit is contained in:
meirzamoodle
2026-01-20 11:12:42 +08:00
committed by Adrian Greeve
parent 91ab36e36c
commit 22ba1bd38a
2 changed files with 5 additions and 21 deletions
@@ -0,0 +1,5 @@
issueNumber: MDL-87426
notes:
core:
- message: The `\admin_setting_configselect::output_select_html()` has been removed from `public/lib/adminlib.php`.
type: removed
-21
View File
@@ -3582,28 +3582,9 @@ class admin_setting_configselect extends admin_setting {
}
}
/**
* Returns XHTML select field
*
* Ensure the options are loaded, and generate the XHTML for the select
* element and any warning message. Separating this out from output_html
* makes it easier to subclass this class.
*
* @param string $data the option to show as selected.
* @param string $current the currently selected option in the database, null if none.
* @param string $default the default selected option.
* @return array the HTML for the select element, and a warning message.
* @deprecated since Moodle 3.2
*/
public function output_select_html($data, $current, $default, $extraname = '') {
debugging('The method admin_setting_configselect::output_select_html is depreacted, do not use any more.', DEBUG_DEVELOPER);
}
/**
* Returns XHTML select field and wrapping div(s)
*
* @see output_select_html()
*
* @param string $data the option to show as selected
* @param string $query
* @return string XHTML field and wrapping div
@@ -5952,8 +5933,6 @@ class admin_setting_configselect_autocomplete extends admin_setting_configselect
/**
* Returns XHTML select field and wrapping div(s)
*
* @see output_select_html()
*
* @param string $data the option to show as selected
* @param string $query
* @return string XHTML field and wrapping div