original_string: protected function col_cohortname($data) {
          global $OUTPUT;
  
          $record = (object) array(
              'id' => $data->cohortid,
              'idnumber' => $data->cohortidnumber,
              'description' => $data->cohortdescription,
              'visible' => $data->cohortvisible,
              'name' => $data->cohortname,
              'theme' => $data->cohorttheme
          );
          $context = context_helper::instance_by_id($data->cohortcontextid);
  
          $exporter = new \core_cohort\external\cohort_summary_exporter($record, array('context' => $context));
          $cohort = $exporter->export($OUTPUT);
  
          $html = $OUTPUT->render_from_template('tool_cohortroles/cohort-in-list', $cohort);
          return $html;
      }
code: protected function col_cohortname($data) {
          global $OUTPUT;
  
          $record = (object) array(
              'id' => $data->cohortid,
              'idnumber' => $data->cohortidnumber,
              'description' => $data->cohortdescription,
              'visible' => $data->cohortvisible,
              'name' => $data->cohortname,
              'theme' => $data->cohorttheme
          );
          $context = context_helper::instance_by_id($data->cohortcontextid);
  
          $exporter = new \core_cohort\external\cohort_summary_exporter($record, array('context' => $context));
          $cohort = $exporter->export($OUTPUT);
  
          $html = $OUTPUT->render_from_template('tool_cohortroles/cohort-in-list', $cohort);
          return $html;
      }
code_tokens: protected function col_cohortname ( $ data ) { global $ OUTPUT ; $ record = ( object ) array ( 'id' => $ data -> cohortid , 'idnumber' => $ data -> cohortidnumber , 'description' => $ data -> cohortdescription , 'visible' => $ data -> cohortvisible , 'name' => $ data -> cohortname , 'theme' => $ data -> cohorttheme ) ; $ context = context_helper :: instance_by_id ( $ data -> cohortcontextid ) ; $ exporter = new \ core_cohort \ external \ cohort_summary_exporter ( $ record , array ( 'context' => $ context ) ) ; $ cohort = $ exporter -> export ( $ OUTPUT ) ; $ html = $ OUTPUT -> render_from_template ( 'tool_cohortroles/cohort-in-list' , $ cohort ) ; return $ html ; }
docstring: Cohort name column.
  
  @param array $data Row data.
  @return string
docstring_tokens: Cohort name column .