public function FormsSteps::setStepDeleteLabel in Forms Steps 8
Set the label of the delete 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::setStepDeleteLabel
File
- src/
Entity/ FormsSteps.php, line 681
Class
- FormsSteps
- FormsSteps configuration entity to persistently store configuration.
Namespace
Drupal\forms_steps\EntityCode
public function setStepDeleteLabel($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]['deleteLabel'] = $label;
return $this;
}