MDL-80995 tool_mfa: final removal of deprecated renderer method.

This commit is contained in:
Paul Holden
2024-12-18 11:03:37 +00:00
parent a97ddeb2a2
commit 4de4e456a4
2 changed files with 10 additions and 24 deletions
@@ -0,0 +1,7 @@
issueNumber: MDL-80995
notes:
tool_mfa:
- message: >-
The previously deprecated `setup_factor` renderer method has been
removed
type: removed
+3 -24
View File
@@ -143,32 +143,11 @@ class renderer extends \plugin_renderer_base {
}
/**
* Returns the html section for factor setup
*
* @param object $factor object of the factor class
* @return string
* @deprecated since Moodle 4.4
* @todo Final deprecation in Moodle 4.8 MDL-80995
*/
public function setup_factor(object $factor): string {
debugging('The method setup_factor() has been deprecated. The HTML derived from this method is no longer needed.
Similar HTML is now achieved as part of available_factors().', DEBUG_DEVELOPER);
$html = '';
$html .= html_writer::start_tag('div', ['class' => 'card']);
$html .= html_writer::tag('h4', $factor->get_display_name(), ['class' => 'card-header']);
$html .= html_writer::start_tag('div', ['class' => 'card-body']);
$html .= $factor->get_info();
$setupparams = ['action' => 'setup', 'factor' => $factor->name, 'sesskey' => sesskey()];
$setupurl = new \moodle_url('action.php', $setupparams);
$html .= $this->output->single_button($setupurl, $factor->get_setup_string());
$html .= html_writer::end_tag('div');
$html .= html_writer::end_tag('div');
$html .= '<br>';
return $html;
#[\core\attribute\deprecated(null, reason: 'It is no longer used', since: '4.4', mdl: 'MDL-79920', final: true)]
public function setup_factor(): void {
\core\deprecation::emit_deprecation_if_present([self::class, __FUNCTION__]);
}
/**