SilverStripe\MultiForm\Forms\MultiForm::getAllStepsRecursive
Recursively run through steps using the getNextStep() method on each step to determine what the next step is, gathering each step along the way.
We stop on the last step, and return the results. If a step in the chain was already saved to the database in the current session, its used - otherwise a singleton of this step is used. Caution: Doesn't consider branching for steps which aren't in the database yet.
Signature
protected function getAllStepsRecursive(MultiFormStep
$step,
$stepsFound&
$stepsFound )
Parameters
$step
— object- Subclass of MultiFormStep to find the next step of
$stepsFound
— object- DataObjectSet reference, the steps found to call back on
Returns
- DataList
- of MultiFormStep instances