original_string: private function format_icon_link($action, $plugin, $icon, $alt) {
          global $OUTPUT;
  
          $url = $this->pageurl;
  
          if ($action === 'delete') {
              $url = core_plugin_manager::instance()->get_uninstall_url($this->subtype.'_'.$plugin, 'manage');
              if (!$url) {
                  return '&nbsp;';
              }
              return html_writer::link($url, get_string('uninstallplugin', 'core_admin'));
          }
  
          return $OUTPUT->action_icon(new moodle_url($url,
                  array('action' => $action, 'plugin'=> $plugin, 'sesskey' => sesskey())),
                  new pix_icon($icon, $alt, 'moodle', array('title' => $alt)),
                  null, array('title' => $alt)) . ' ';
      }
code: private function format_icon_link($action, $plugin, $icon, $alt) {
          global $OUTPUT;
  
          $url = $this->pageurl;
  
          if ($action === 'delete') {
              $url = core_plugin_manager::instance()->get_uninstall_url($this->subtype.'_'.$plugin, 'manage');
              if (!$url) {
                  return '&nbsp;';
              }
              return html_writer::link($url, get_string('uninstallplugin', 'core_admin'));
          }
  
          return $OUTPUT->action_icon(new moodle_url($url,
                  array('action' => $action, 'plugin'=> $plugin, 'sesskey' => sesskey())),
                  new pix_icon($icon, $alt, 'moodle', array('title' => $alt)),
                  null, array('title' => $alt)) . ' ';
      }
code_tokens: private function format_icon_link ( $ action , $ plugin , $ icon , $ alt ) { global $ OUTPUT ; $ url = $ this -> pageurl ; if ( $ action === 'delete' ) { $ url = core_plugin_manager :: instance ( ) -> get_uninstall_url ( $ this -> subtype . '_' . $ plugin , 'manage' ) ; if ( ! $ url ) { return '&nbsp;' ; } return html_writer :: link ( $ url , get_string ( 'uninstallplugin' , 'core_admin' ) ) ; } return $ OUTPUT -> action_icon ( new moodle_url ( $ url , array ( 'action' => $ action , 'plugin' => $ plugin , 'sesskey' => sesskey ( ) ) ) , new pix_icon ( $ icon , $ alt , 'moodle' , array ( 'title' => $ alt ) ) , null , array ( 'title' => $ alt ) ) . ' ' ; }
docstring: Util function for writing an action icon link
  
  @param string $action URL parameter to include in the link
  @param string $plugin URL parameter to include in the link
  @param string $icon The key to the icon to use (e.g. 't/up')
  @param string $alt The string description of the link used as the title and alt text
  @return string The icon/link
docstring_tokens: Util function for writing an action icon link