We are creating a new theme based off of the Boost theme and we want to customize the items that appear in the navigation drawer. My idea was to make a core edit to place where the flat_navigation class is created for the flatnav and replacing it with our own class:
https://github.com/moodle/moodle/blob/v3.4.1/lib/pagelib.php#L770
But is there a better approach to override the class file that produces the navigation drawer items so that we can rearrange them and add/remove items?
Or is there a theme that does this so that I can see what they do?