You are here

public function Step::setCancelStep in Forms Steps 8

Set the cancel step.

Parameters

\Drupal\forms_steps\Step $step: The step to go when the user click the cancel button.

Overrides StepInterface::setCancelStep

File

src/Step.php, line 341

Class

Step
A value object representing a step state.

Namespace

Drupal\forms_steps

Code

public function setCancelStep(Step $step) {
  $this->cancelStep = $step;
}