public function FormsSteps::getNextStepRoute in Forms Steps 8
Returns the next step route.
Parameters
\Drupal\forms_steps\Step $step: Current Step.
Return value
null|string Returns the next route.
Overrides FormsStepsInterface::getNextStepRoute
File
- src/
Entity/ FormsSteps.php, line 314
Class
- FormsSteps
- FormsSteps configuration entity to persistently store configuration.
Namespace
Drupal\forms_steps\EntityCode
public function getNextStepRoute(Step $step) {
$nextRoute = NULL;
$nextStep = $this
->getNextStep($step);
if ($nextStep) {
$nextRoute = 'forms_steps.' . $this->id . '.' . $nextStep
->id();
}
return $nextRoute;
}