public function FormsSteps::setStepPreviousLabel in Forms Steps 8
Set the label of the previous button of the step.
Parameters
int $step_id: Step id.
mixed $label: Label to set.
Return value
\Drupal\forms_steps\Entity\FormsSteps The forms steps.
Overrides FormsStepsInterface::setStepPreviousLabel
File
- src/Entity/ FormsSteps.php, line 803 
Class
- FormsSteps
- FormsSteps configuration entity to persistently store configuration.
Namespace
Drupal\forms_steps\EntityCode
public function setStepPreviousLabel($step_id, $label) {
  if (!isset($this->steps[$step_id])) {
    throw new \InvalidArgumentException("The Step '{$step_id}' does not exist in forms steps '{$this->id()}'");
  }
  $this->steps[$step_id]['previousLabel'] = $label;
  return $this;
}