Skip to content

Commit 4e08ed6

Browse files
committed
Remove sections from breadcrumbs (MDL-80249)
1 parent 65771a1 commit 4e08ed6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,6 +1523,16 @@ public function get_config_for_external(): array {
15231523
// Return everything (nothing to hide).
15241524
return $this->get_format_options();
15251525
}
1526+
1527+
/**
1528+
* Determines whether section items can be removed from the navigation, just like the breadcrumb feature seen on activity pages.
1529+
* By default, it returns false but can be overridden by the course format to change the behaviour.
1530+
*
1531+
* @return bool True if sections can be removed, false otherwise.
1532+
*/
1533+
public function can_sections_be_removed_from_navigation(): bool {
1534+
return true;
1535+
}
15261536
}
15271537

15281538
/**

0 commit comments

Comments
 (0)