1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-14 13:02:07 +02:00

MDL-77552 core_courseformat: add plugin and module to cm state

Backport of MDL-77386
This commit is contained in:
Ferran Recio 2023-03-08 10:03:40 +01:00
parent a78f3a02c6
commit 8656271a63

@ -90,6 +90,8 @@ class cm implements renderable {
'sectionnumber' => $section->section,
'uservisible' => $cm->uservisible,
'hascmrestrictions' => $this->get_has_restrictions(),
'module' => $cm->modname,
'plugin' => 'mod_' . $cm->modname,
];
// Check the user access type to this cm.