mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-82183 output: Move render_context_header()
* With \core_renderer in lib/outputrenderers.php moved to its standalone class in \core\output, the method ::render_context_header() introduced in MDL-82160 also needs to be moved to the new class.
This commit is contained in:
parent
e84daab7dd
commit
85a83eb365
@ -2,6 +2,6 @@ issueNumber: MDL-82160
|
||||
notes:
|
||||
theme:
|
||||
- message: >-
|
||||
The method `core_renderer::render_context_header` has been deprecated
|
||||
please use core_renderer::render($contextheader) instead
|
||||
The method `\core\output\core_renderer::render_context_header` has been deprecated
|
||||
please use `\core\output\core_renderer::render($contextheader)` instead
|
||||
type: deprecated
|
||||
|
@ -4153,6 +4153,20 @@ EOD;
|
||||
return $this->render($contextheader);
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the header bar.
|
||||
*
|
||||
* @param context_header $contextheader Header bar object.
|
||||
* @return string HTML for the header bar.
|
||||
* @deprecated since 4.5 Please use core_renderer::render($contextheader) instead
|
||||
* @todo MDL-82163 This will be deleted in Moodle 6.0.
|
||||
*/
|
||||
#[\core\attribute\deprecated('core_renderer::render($contextheader)', since: '4.5', mdl: 'MDL-82160')]
|
||||
protected function render_context_header(context_header $contextheader) {
|
||||
$context = $contextheader->export_for_template($this);
|
||||
return $this->render_from_template('core/context_header', $context);
|
||||
}
|
||||
|
||||
/**
|
||||
* Renders the skip links for the page.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user