-
Improvement
-
Resolution: Duplicate
-
Minor
-
None
-
5.0
-
MOODLE_500_STABLE
The current core_courseformat\output\local\content\cm\controlmenu is still using the old course_get_cm_edit_actions.
The old course editing will be deprecated in 5.0, which allows for simplifying the logic. This issue prepares the class for deprecating any course format incompatible with components.
Also, the permalink option should be moved before the delete one because the current position is wrong.
Technical shaping
We cannot get rid of the old action menu until 6.0. However, the new refactor should not include all the twisted logic required for old formats. To allow this the process should be
- Deprecate the old course_get_cm_edit_actions.
- Refactor the class.
- In the refactored cm_control_items add an if clause for the courses that need the legacy one (!$this->format->supports_components()).