original_string: public function course_detail_actions(core_course_list_element $course) {
          $actions = \core_course\management\helper::get_course_detail_actions($course);
          if (empty($actions)) {
              return '';
          }
          $options = array();
          foreach ($actions as $action) {
              $options[] = $this->action_link($action['url'], $action['string'], null,
                      array('class' => 'btn btn-sm btn-secondary mr-1 mb-3'));
          }
          return html_writer::div(join('', $options), 'listing-actions course-detail-listing-actions');
      }
code: public function course_detail_actions(core_course_list_element $course) {
          $actions = \core_course\management\helper::get_course_detail_actions($course);
          if (empty($actions)) {
              return '';
          }
          $options = array();
          foreach ($actions as $action) {
              $options[] = $this->action_link($action['url'], $action['string'], null,
                      array('class' => 'btn btn-sm btn-secondary mr-1 mb-3'));
          }
          return html_writer::div(join('', $options), 'listing-actions course-detail-listing-actions');
      }
code_tokens: public function course_detail_actions ( core_course_list_element $ course ) { $ actions = \ core_course \ management \ helper :: get_course_detail_actions ( $ course ) ; if ( empty ( $ actions ) ) { return '' ; } $ options = array ( ) ; foreach ( $ actions as $ action ) { $ options [ ] = $ this -> action_link ( $ action [ 'url' ] , $ action [ 'string' ] , null , array ( 'class' => 'btn btn-sm btn-secondary mr-1 mb-3' ) ) ; } return html_writer :: div ( join ( '' , $ options ) , 'listing-actions course-detail-listing-actions' ) ; }
docstring: A collection of actions for a course.
  
  @param core_course_list_element $course The course to display actions for.
  @return string
docstring_tokens: A collection of actions for a course .