/** * Removes route parameters for dynamic step navigation. * @param array $parameters Current route parameters. * @param FormFlow $flow The flow involved. * @return array Route parameters without instance and step parameter. */ public function removeRouteParameters(array $parameters, FormFlow $flow) { unset($parameters[$flow->getDynamicStepNavigationInstanceParameter()]); unset($parameters[$flow->getDynamicStepNavigationStepParameter()]); return $parameters; }