original_string: public static function get_edit_tour_link($tourid = null) {
          $link = new \moodle_url('/admin/tool/usertours/configure.php');
  
          if ($tourid) {
              $link->param('action', manager::ACTION_EDITTOUR);
              $link->param('id', $tourid);
          } else {
              $link->param('action', manager::ACTION_NEWTOUR);
          }
  
          return $link;
      }
code: public static function get_edit_tour_link($tourid = null) {
          $link = new \moodle_url('/admin/tool/usertours/configure.php');
  
          if ($tourid) {
              $link->param('action', manager::ACTION_EDITTOUR);
              $link->param('id', $tourid);
          } else {
              $link->param('action', manager::ACTION_NEWTOUR);
          }
  
          return $link;
      }
code_tokens: public static function get_edit_tour_link ( $ tourid = null ) { $ link = new \ moodle_url ( '/admin/tool/usertours/configure.php' ) ; if ( $ tourid ) { $ link -> param ( 'action' , manager :: ACTION_EDITTOUR ) ; $ link -> param ( 'id' , $ tourid ) ; } else { $ link -> param ( 'action' , manager :: ACTION_NEWTOUR ) ; } return $ link ; }
docstring: Get the link used to edit the tour.
  
  @param   int         $tourid     The ID of the tour to edit.
  @return  moodle_url              The URL.
docstring_tokens: Get the link used to edit the tour .