SilverStripe\MultiForm\Forms\MultiForm::actionsFor
Build a FieldList of the FormAction fields for the given step.
If the current step is the final step, we push in a submit button, which calls the action to finalise the submission. Otherwise, we push in a next button which calls the action to determine where to go next in our step process, and save any form data collected. If there's a previous step (a step that has the current step as it's next step class), then we allow a previous button, which calls the previous action to determine which step to go back to. If there are any extra actions defined in MultiFormStep->getExtraActions() then that set of actions is appended to the end of the actions FieldSet we have created in this method.
Signature
public function actionsFor(MultiFormStep
$step )
Parameters
$step
— object- Subclass of MultiFormStep
Returns
- FieldList
- of FormAction objects