original_string: public function get_icon($alt, array $attributes = null) {
          global $COMPLETION_CRITERIA_TYPES;
  
          $criteriatype = $COMPLETION_CRITERIA_TYPES[$this->criteriatype];
          return new pix_icon('i/'.$criteriatype, $alt, 'moodle', $attributes);
      }
code: public function get_icon($alt, array $attributes = null) {
          global $COMPLETION_CRITERIA_TYPES;
  
          $criteriatype = $COMPLETION_CRITERIA_TYPES[$this->criteriatype];
          return new pix_icon('i/'.$criteriatype, $alt, 'moodle', $attributes);
      }
code_tokens: public function get_icon ( $ alt , array $ attributes = null ) { global $ COMPLETION_CRITERIA_TYPES ; $ criteriatype = $ COMPLETION_CRITERIA_TYPES [ $ this -> criteriatype ] ; return new pix_icon ( 'i/' . $ criteriatype , $ alt , 'moodle' , $ attributes ) ; }
docstring: Return pix_icon for display in reports.
  
  @param string $alt The alt text to use for the icon
  @param array $attributes html attributes
  @return pix_icon
docstring_tokens: Return pix_icon for display in reports .