original_string: public function course_section_cm_list_item($course, &$completioninfo, cm_info $mod, $sectionreturn, $displayoptions = array()) {
          $output = '';
          if ($modulehtml = $this->course_section_cm($course, $completioninfo, $mod, $sectionreturn, $displayoptions)) {
              $modclasses = 'activity ' . $mod->modname . ' modtype_' . $mod->modname . ' ' . $mod->extraclasses;
              $output .= html_writer::tag('li', $modulehtml, array('class' => $modclasses, 'id' => 'module-' . $mod->id));
          }
          return $output;
      }
code: public function course_section_cm_list_item($course, &$completioninfo, cm_info $mod, $sectionreturn, $displayoptions = array()) {
          $output = '';
          if ($modulehtml = $this->course_section_cm($course, $completioninfo, $mod, $sectionreturn, $displayoptions)) {
              $modclasses = 'activity ' . $mod->modname . ' modtype_' . $mod->modname . ' ' . $mod->extraclasses;
              $output .= html_writer::tag('li', $modulehtml, array('class' => $modclasses, 'id' => 'module-' . $mod->id));
          }
          return $output;
      }
code_tokens: public function course_section_cm_list_item ( $ course , & $ completioninfo , cm_info $ mod , $ sectionreturn , $ displayoptions = array ( ) ) { $ output = '' ; if ( $ modulehtml = $ this -> course_section_cm ( $ course , $ completioninfo , $ mod , $ sectionreturn , $ displayoptions ) ) { $ modclasses = 'activity ' . $ mod -> modname . ' modtype_' . $ mod -> modname . ' ' . $ mod -> extraclasses ; $ output .= html_writer :: tag ( 'li' , $ modulehtml , array ( 'class' => $ modclasses , 'id' => 'module-' . $ mod -> id ) ) ; } return $ output ; }
docstring: Renders HTML to display one course module for display within a section.
  
  This function calls:
  {@link core_course_renderer::course_section_cm()}
  
  @param stdClass $course
  @param completion_info $completioninfo
  @param cm_info $mod
  @param int|null $sectionreturn
  @param array $displayoptions
  @return String
docstring_tokens: Renders HTML to display one course module for display within a section .