MDL-72112 admin_presets: Add admin_presets tool

This commit is contained in:
Sara Arjona
2021-12-03 11:11:37 +01:00
committed by Amaia Anabitarte
parent ecfded8d31
commit 9e4f2a45f8
107 changed files with 9880 additions and 3 deletions
+2 -1
View File
@@ -5395,9 +5395,10 @@ class core_renderer_maintenance extends core_renderer {
* @param string $message The question to ask the user
* @param single_button|moodle_url|string $continue The single_button component representing the Continue answer.
* @param single_button|moodle_url|string $cancel The single_button component representing the Cancel answer.
* @param array $displayoptions optional extra display options
* @return string HTML fragment
*/
public function confirm($message, $continue, $cancel) {
public function confirm($message, $continue, $cancel, array $displayoptions = []) {
// We need plain styling of confirm boxes on upgrade because we don't know which stylesheet we have (it could be
// from any previous version of Moodle).
if ($continue instanceof single_button) {