MDL-73165 output: final removal of deprecated display logo method.

This commit is contained in:
Paul Holden 2024-03-07 17:47:35 +00:00
parent 67b2c43225
commit 81d2800a55
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164
2 changed files with 8 additions and 16 deletions

View File

@ -421,25 +421,12 @@ class renderer_base {
}
/**
* Whether we should display the main logo.
* @deprecated since Moodle 4.0
* @todo final deprecation. To be removed in Moodle 4.4 MDL-73165.
* @param int $headinglevel The heading level we want to check against.
* @return bool
*/
public function should_display_main_logo($headinglevel = 1) {
debugging('should_display_main_logo() is deprecated and will be removed in Moodle 4.4.', DEBUG_DEVELOPER);
// Only render the logo if we're on the front page or login page and the we have a logo.
$logo = $this->get_logo_url();
if ($headinglevel == 1 && !empty($logo)) {
if ($this->page->pagelayout == 'frontpage' || $this->page->pagelayout == 'login') {
return true;
}
}
return false;
#[\core\attribute\deprecated(null, reason: 'It is no longer used', since: '4.0', final: true)]
public function should_display_main_logo() {
\core\deprecation::emit_deprecation_if_present([self::class, __FUNCTION__]);
}
}

View File

@ -1,6 +1,11 @@
This files describes API changes in core libraries and APIs,
information provided here is intended especially for developers.
=== 4.5 ===
* The following previously deprecated methods have been removed and can no longer be used:
- `renderer_base::should_display_main_logo`
=== 4.4 ===
* New modinfo methods related to delegated sections (sections controlled by a component):