original_string: public function col_info($expiredctx) {
          global $OUTPUT;
  
          $context = context_helper::instance_by_id($expiredctx->get('contextid'));
  
          $children = $context->get_child_contexts();
          if (empty($children)) {
              return get_string('none');
          } else {
              $childnames = [];
              foreach ($children as $child) {
                  $childnames[] = $child->get_context_name(false, true);
              }
              $infoicon = new pix_icon('i/info', implode(', ', $childnames));
              $infoiconhtml = $OUTPUT->render($infoicon);
              $name = html_writer::span(get_string('nchildren', 'tool_dataprivacy', count($children)), 'mr-1');
  
              return  $name . $infoiconhtml;
          }
      }
code: public function col_info($expiredctx) {
          global $OUTPUT;
  
          $context = context_helper::instance_by_id($expiredctx->get('contextid'));
  
          $children = $context->get_child_contexts();
          if (empty($children)) {
              return get_string('none');
          } else {
              $childnames = [];
              foreach ($children as $child) {
                  $childnames[] = $child->get_context_name(false, true);
              }
              $infoicon = new pix_icon('i/info', implode(', ', $childnames));
              $infoiconhtml = $OUTPUT->render($infoicon);
              $name = html_writer::span(get_string('nchildren', 'tool_dataprivacy', count($children)), 'mr-1');
  
              return  $name . $infoiconhtml;
          }
      }
code_tokens: public function col_info ( $ expiredctx ) { global $ OUTPUT ; $ context = context_helper :: instance_by_id ( $ expiredctx -> get ( 'contextid' ) ) ; $ children = $ context -> get_child_contexts ( ) ; if ( empty ( $ children ) ) { return get_string ( 'none' ) ; } else { $ childnames = [ ] ; foreach ( $ children as $ child ) { $ childnames [ ] = $ child -> get_context_name ( false , true ) ; } $ infoicon = new pix_icon ( 'i/info' , implode ( ', ' , $ childnames ) ) ; $ infoiconhtml = $ OUTPUT -> render ( $ infoicon ) ; $ name = html_writer :: span ( get_string ( 'nchildren' , 'tool_dataprivacy' , count ( $ children ) ) , 'mr-1' ) ; return $ name . $ infoiconhtml ; } }
docstring: The context information column.
  
  @param stdClass $expiredctx The row data.
  @return string
  @throws coding_exception
docstring_tokens: The context information column .