original_string: public function get_uninstall_url($component, $return = 'overview') {
          if (!$this->can_uninstall_plugin($component)) {
              return null;
          }
  
          $pluginfo = $this->get_plugin_info($component);
  
          if (is_null($pluginfo)) {
              return null;
          }
  
          if (method_exists($pluginfo, 'get_uninstall_url')) {
              debugging('plugininfo method get_uninstall_url() is deprecated, all plugins should be uninstalled via standard URL only.');
              return $pluginfo->get_uninstall_url($return);
          }
  
          return $pluginfo->get_default_uninstall_url($return);
      }
code: public function get_uninstall_url($component, $return = 'overview') {
          if (!$this->can_uninstall_plugin($component)) {
              return null;
          }
  
          $pluginfo = $this->get_plugin_info($component);
  
          if (is_null($pluginfo)) {
              return null;
          }
  
          if (method_exists($pluginfo, 'get_uninstall_url')) {
              debugging('plugininfo method get_uninstall_url() is deprecated, all plugins should be uninstalled via standard URL only.');
              return $pluginfo->get_uninstall_url($return);
          }
  
          return $pluginfo->get_default_uninstall_url($return);
      }
code_tokens: public function get_uninstall_url ( $ component , $ return = 'overview' ) { if ( ! $ this -> can_uninstall_plugin ( $ component ) ) { return null ; } $ pluginfo = $ this -> get_plugin_info ( $ component ) ; if ( is_null ( $ pluginfo ) ) { return null ; } if ( method_exists ( $ pluginfo , 'get_uninstall_url' ) ) { debugging ( 'plugininfo method get_uninstall_url() is deprecated, all plugins should be uninstalled via standard URL only.' ) ; return $ pluginfo -> get_uninstall_url ( $ return ) ; } return $ pluginfo -> get_default_uninstall_url ( $ return ) ; }
docstring: Returns uninstall URL if exists.
  
  @param string $component
  @param string $return either 'overview' or 'manage'
  @return moodle_url uninstall URL, null if uninstall not supported
docstring_tokens: Returns uninstall URL if exists .