You are here

public function ProgressStep::__construct in Forms Steps 8

Step constructor.

Parameters

\Drupal\forms_Steps\FormsStepsInterface $forms_steps: The forms_steps the progress step is attached to.

string $id: The progress step's ID.

string $label: The progress step's label.

int $weight: The progress step's weight.

array $routes: The progress step's active routes.

string $link: The progress step's link.

array $link_visibility: The progress step's link visibility.

File

src/ProgressStep.php, line 77

Class

ProgressStep
A value object representing a progress step.

Namespace

Drupal\forms_steps

Code

public function __construct(FormsStepsInterface $forms_steps, $id, $label, $weight, array $routes, $link, array $link_visibility) {
  $this->formsSteps = $forms_steps;
  $this->id = $id;
  $this->label = $label;
  $this->weight = $weight;
  $this->routes = $routes;
  $this->link = $link;
  $this->linkVisibility = $link_visibility;
}