MDL-70197 navigation: Remove old navigation elements and migrate behat

This commit is contained in:
Mathew May
2021-11-29 15:47:42 +08:00
parent 18b2af60f5
commit b983003e2e
150 changed files with 944 additions and 445 deletions
+1
View File
@@ -515,6 +515,7 @@ function enrol_add_course_navigation(navigation_node $coursenode, $course) {
if ($unenrollink = $plugin->get_unenrolself_link($instance)) {
$shortname = format_string($course->shortname, true, array('context' => $coursecontext));
$coursenode->add(get_string('unenrolme', 'core_enrol', $shortname), $unenrollink, navigation_node::TYPE_SETTING, null, 'unenrolself', new pix_icon('i/user', ''));
$coursenode->get('unenrolself')->set_force_into_more_menu();
break;
//TODO. deal with multiple unenrol links - not likely case, but still...
}