diff --git a/course/format/classes/output/local/state/cm.php b/course/format/classes/output/local/state/cm.php index a28a49aa0a9..3b39485e9d2 100644 --- a/course/format/classes/output/local/state/cm.php +++ b/course/format/classes/output/local/state/cm.php @@ -90,6 +90,8 @@ class cm implements renderable { 'uservisible' => $cm->uservisible, 'hascmrestrictions' => $this->get_has_restrictions(), 'modname' => get_string('pluginname', 'mod_' . $cm->modname), + 'module' => $cm->modname, + 'plugin' => 'mod_' . $cm->modname, ]; // Check the user access type to this cm.