You are here

public function FormsSteps::getFirstStep in Forms Steps 8

Retrieve the first step defined on a forms steps entity.

Parameters

string $steps: The forms_steps steps' IDs.

Return value

\Drupal\forms_steps\StepInterface The forms_steps step.

Overrides FormsStepsInterface::getFirstStep

File

src/Entity/FormsSteps.php, line 401

Class

FormsSteps
FormsSteps configuration entity to persistently store configuration.

Namespace

Drupal\forms_steps\Entity

Code

public function getFirstStep($steps = NULL) {
  if ($steps === NULL) {
    $steps = $this
      ->getSteps();
  }
  return reset($steps);
}