public function course_modchooser($modules, $course) {
        if (!$this->page->requires->should_create_one_time_item_now('core_course_modchooser')) {
            return '';
        }
        $modchooser = new \core_course\output\modchooser($course, $modules);
        return $this->render($modchooser);
    }