mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
Merge branch 'MDL-82160-main' of https://github.com/roland04/moodle
This commit is contained in:
commit
8b15366f28
2 changed files with 21 additions and 0 deletions
7
.upgradenotes/MDL-82160-2024061112162023.yml
Normal file
7
.upgradenotes/MDL-82160-2024061112162023.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
issueNumber: MDL-82160
|
||||
notes:
|
||||
theme:
|
||||
- message: >-
|
||||
The method `core_renderer::render_context_header` has been deprecated
|
||||
please use core_renderer::render($contextheader) instead
|
||||
type: deprecated
|
|
@ -4601,6 +4601,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…
Add table
Add a link
Reference in a new issue