mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-77386 core_courseformat: add plugin and module to cm state
This commit is contained in:
parent
9ee4f8db8b
commit
30c172becf
@ -90,6 +90,8 @@ class cm implements renderable {
|
|||||||
'uservisible' => $cm->uservisible,
|
'uservisible' => $cm->uservisible,
|
||||||
'hascmrestrictions' => $this->get_has_restrictions(),
|
'hascmrestrictions' => $this->get_has_restrictions(),
|
||||||
'modname' => get_string('pluginname', 'mod_' . $cm->modname),
|
'modname' => get_string('pluginname', 'mod_' . $cm->modname),
|
||||||
|
'module' => $cm->modname,
|
||||||
|
'plugin' => 'mod_' . $cm->modname,
|
||||||
];
|
];
|
||||||
|
|
||||||
// Check the user access type to this cm.
|
// Check the user access type to this cm.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user