MDL-80249 course: Hide secondary menu and add breadcrumb to section page

This commit is contained in:
Sara Arjona
2024-02-14 08:03:56 +01:00
parent 9ac10c4681
commit 1ea31db81c
23 changed files with 194 additions and 104 deletions
+10
View File
@@ -2028,4 +2028,14 @@ abstract class base {
public function get_required_jsfiles(): array {
return [];
}
/**
* Determines whether section items can be removed from the navigation, just like the breadcrumb feature seen on activity pages.
* By default, it returns false but can be overridden by the course format to change the behaviour.
*
* @return bool True if sections can be removed, false otherwise.
*/
public function can_sections_be_removed_from_navigation(): bool {
return false;
}
}