You are here

public function Step::__construct in Forms Steps 8

Step constructor.

Parameters

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

string $id: The step's ID.

string $label: The step's label.

int $weight: The step's weight.

string $entityType: The step's entity type.

string $entityBundle: The step's bundle.

string $formMode: The step's form mode.

string $url: The step's URL.

File

src/Step.php, line 149

Class

Step
A value object representing a step state.

Namespace

Drupal\forms_steps

Code

public function __construct(FormsStepsInterface $forms_steps, $id, $label, $weight, $entityType, $entityBundle, $formMode, $url) {
  $this->formsSteps = $forms_steps;
  $this->id = $id;
  $this->label = $label;
  $this->weight = $weight;
  $this->entityType = $entityType;
  $this->entityBundle = $entityBundle;
  $this->formMode = $formMode;
  $this->url = $url;
}