You are here

public function PetPreviewForm::stepBack in Previewable email templates 8

Same name and namespace in other branches
  1. 8.4 src/Form/PetPreviewForm.php \Drupal\pet\Form\PetPreviewForm::stepBack()
  2. 8.3 src/Form/PetPreviewForm.php \Drupal\pet\Form\PetPreviewForm::stepBack()

File

src/Form/PetPreviewForm.php, line 308

Class

PetPreviewForm

Namespace

Drupal\pet\Form

Code

public function stepBack(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRebuild(TRUE);
  $form_state
    ->set('step', 1);
}