public function FormsSteps::setProgressStepLinkVisibility in Forms Steps 8
Sets a progress step's link visibility.
Parameters
string $progress_step_id: The progress step ID to set the link for.
array $steps: The progress step's link visibility.
Return value
\Drupal\forms_steps\ProgressStepInterface The forms_steps entity.
Overrides FormsStepsInterface::setProgressStepLinkVisibility
File
- src/
Entity/ FormsSteps.php, line 733
Class
- FormsSteps
- FormsSteps configuration entity to persistently store configuration.
Namespace
Drupal\forms_steps\EntityCode
public function setProgressStepLinkVisibility($progress_step_id, array $steps) {
if (!isset($this->progress_steps[$progress_step_id])) {
throw new \InvalidArgumentException("The progress step '{$progress_step_id}' does not exist in forms steps '{$this->id()}'");
}
$this->progress_steps[$progress_step_id]['link_visibility'] = $steps;
return $this;
}