original_string: protected function print_tag_icon($id, \moodle_url $url, $cantag, $contextid) {
          global $OUTPUT;
  
          $params = [
              'data-action' => 'edittags',
              'data-cantag' => $cantag,
              'data-contextid' => $contextid,
              'data-questionid' => $id
          ];
  
          echo \html_writer::link($url, $OUTPUT->pix_icon('t/tags', get_string('managetags', 'tag')), $params);
      }
code: protected function print_tag_icon($id, \moodle_url $url, $cantag, $contextid) {
          global $OUTPUT;
  
          $params = [
              'data-action' => 'edittags',
              'data-cantag' => $cantag,
              'data-contextid' => $contextid,
              'data-questionid' => $id
          ];
  
          echo \html_writer::link($url, $OUTPUT->pix_icon('t/tags', get_string('managetags', 'tag')), $params);
      }
code_tokens: protected function print_tag_icon ( $ id , \ moodle_url $ url , $ cantag , $ contextid ) { global $ OUTPUT ; $ params = [ 'data-action' => 'edittags' , 'data-cantag' => $ cantag , 'data-contextid' => $ contextid , 'data-questionid' => $ id ] ; echo \ html_writer :: link ( $ url , $ OUTPUT -> pix_icon ( 't/tags' , get_string ( 'managetags' , 'tag' ) ) , $ params ) ; }
docstring: Build and print the tags icon.
  
  @param int $id The question ID.
  @param \moodle_url $url Editing question url.
  @param bool $cantag Whether the user can tag questions or not.
  @param int $contextid Question category context ID.
docstring_tokens: Build and print the tags icon .