You are here

public function FormsStepsInterface::getPreviousStep in Forms Steps 8

Returns the previous step to $step.

Parameters

\Drupal\forms_steps\Step $step: The current Step.

Return value

\Drupal\forms_steps\Step|null Returns the previous Step or first step if no previous step found.

1 method overrides FormsStepsInterface::getPreviousStep()
FormsSteps::getPreviousStep in src/Entity/FormsSteps.php
Returns the previous step to $step.

File

src/FormsStepsInterface.php, line 422

Class

FormsStepsInterface
Interface FormsStepsInterface.

Namespace

Drupal\forms_steps

Code

public function getPreviousStep(Step $step);