original_string: public static function get_edit_step_link($tourid, $stepid = null, $targettype = null) {
          $link = new \moodle_url('/admin/tool/usertours/configure.php');
  
          if ($stepid) {
              $link->param('action', manager::ACTION_EDITSTEP);
              $link->param('id', $stepid);
          } else {
              $link->param('action', manager::ACTION_NEWSTEP);
              $link->param('tourid', $tourid);
          }
  
          return $link;
      }
code: public static function get_edit_step_link($tourid, $stepid = null, $targettype = null) {
          $link = new \moodle_url('/admin/tool/usertours/configure.php');
  
          if ($stepid) {
              $link->param('action', manager::ACTION_EDITSTEP);
              $link->param('id', $stepid);
          } else {
              $link->param('action', manager::ACTION_NEWSTEP);
              $link->param('tourid', $tourid);
          }
  
          return $link;
      }
code_tokens: public static function get_edit_step_link ( $ tourid , $ stepid = null , $ targettype = null ) { $ link = new \ moodle_url ( '/admin/tool/usertours/configure.php' ) ; if ( $ stepid ) { $ link -> param ( 'action' , manager :: ACTION_EDITSTEP ) ; $ link -> param ( 'id' , $ stepid ) ; } else { $ link -> param ( 'action' , manager :: ACTION_NEWSTEP ) ; $ link -> param ( 'tourid' , $ tourid ) ; } return $ link ; }
docstring: Get the link to edit the step.
  
  If no stepid is specified, then a link to create a new step is provided. The $targettype must be specified in this case.
  
  @param   int     $tourid     The tour that the step belongs to.
  @param   int     $stepid     The step ID.
  @param   int     $targettype The type of step.
  
  @return moodle_url
docstring_tokens: Get the link to edit the step .