From 30c172becff030a0484d19597e2ea7690209722d Mon Sep 17 00:00:00 2001 From: Ferran Recio Date: Thu, 23 Feb 2023 14:05:14 +0100 Subject: [PATCH] MDL-77386 core_courseformat: add plugin and module to cm state --- course/format/classes/output/local/state/cm.php | 2 ++ 1 file changed, 2 insertions(+) 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.