-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
Future Dev
Since 4.0, most course format rendering has been moved to output classes. However, some global functions are still used because of legacy code.
This issue concerns deprecating the old course_get_cm_edit_actions and incorporating all the logic into the core_courseformat\output\local\content\cm\controlmenu class. It will also include replacing all uses of that function with the output.
The final implementation will be similar to the one done in the sections control menu: core_courseformat\output\local\content\section\controlmenu, using smaller methods and making the final code more maintainable.
Once the change has been done, the issue will also check if the three action menus section\controlmenu, cm\controlmenuĀ and cm/delegatedcontrolmenu.php can be refactor so basecontrolmenu class can unify more logic.