original_string: public function course_detail(core_course_list_element $course) {
          $details = \core_course\management\helper::get_course_detail_array($course);
          $fullname = $details['fullname']['value'];
  
          $html = html_writer::start_div('course-detail card');
          $html .= html_writer::start_div('card-header');
          $html .= html_writer::tag('h3', $fullname, array('id' => 'course-detail-title',
                  'class' => 'card-title', 'tabindex' => '0'));
          $html .= html_writer::end_div();
          $html .= html_writer::start_div('card-body');
          $html .= $this->course_detail_actions($course);
          foreach ($details as $class => $data) {
              $html .= $this->detail_pair($data['key'], $data['value'], $class);
          }
          $html .= html_writer::end_div();
          $html .= html_writer::end_div();
          return $html;
      }
code: public function course_detail(core_course_list_element $course) {
          $details = \core_course\management\helper::get_course_detail_array($course);
          $fullname = $details['fullname']['value'];
  
          $html = html_writer::start_div('course-detail card');
          $html .= html_writer::start_div('card-header');
          $html .= html_writer::tag('h3', $fullname, array('id' => 'course-detail-title',
                  'class' => 'card-title', 'tabindex' => '0'));
          $html .= html_writer::end_div();
          $html .= html_writer::start_div('card-body');
          $html .= $this->course_detail_actions($course);
          foreach ($details as $class => $data) {
              $html .= $this->detail_pair($data['key'], $data['value'], $class);
          }
          $html .= html_writer::end_div();
          $html .= html_writer::end_div();
          return $html;
      }
code_tokens: public function course_detail ( core_course_list_element $ course ) { $ details = \ core_course \ management \ helper :: get_course_detail_array ( $ course ) ; $ fullname = $ details [ 'fullname' ] [ 'value' ] ; $ html = html_writer :: start_div ( 'course-detail card' ) ; $ html .= html_writer :: start_div ( 'card-header' ) ; $ html .= html_writer :: tag ( 'h3' , $ fullname , array ( 'id' => 'course-detail-title' , 'class' => 'card-title' , 'tabindex' => '0' ) ) ; $ html .= html_writer :: end_div ( ) ; $ html .= html_writer :: start_div ( 'card-body' ) ; $ html .= $ this -> course_detail_actions ( $ course ) ; foreach ( $ details as $ class => $ data ) { $ html .= $ this -> detail_pair ( $ data [ 'key' ] , $ data [ 'value' ] , $ class ) ; } $ html .= html_writer :: end_div ( ) ; $ html .= html_writer :: end_div ( ) ; return $ html ; }
docstring: Renderers detailed course information.
  
  @param core_course_list_element $course The course to display details for.
  @return string
docstring_tokens: Renderers detailed course information .