You are here

public function Step::isLast in Forms Steps 8

Determines if the step is the last one on its forms steps entity.

Overrides StepInterface::isLast

File

src/Step.php, line 390

Class

Step
A value object representing a step state.

Namespace

Drupal\forms_steps

Code

public function isLast() {
  $last_step = $this->formsSteps
    ->getLastStep();
  if ($this->id == $last_step
    ->id()) {
    return TRUE;
  }
  return FALSE;
}