SilverStripe\MultiForm\Forms\MultiForm::getCurrentStep
Get the current step.
If StepID has been set in the URL, we attempt to get that record by the ID. Otherwise, we check if there's a current step ID in our session record. Failing those cases, we assume that the form has just been started, and so we create the first step and return it.
Signature
public function getCurrentStep()
Returns
- MultiFormStep
- subclass