You are here

public function TourForm::delete in Tour UI 8

File

src/Form/TourForm.php, line 393

Class

TourForm
Form controller for the tour entity edit forms.

Namespace

Drupal\tour_ui\Form

Code

public function delete(array $form, FormStateInterface $form_state) {
  $entity = $this
    ->getEntity($form_state);
  $form_state
    ->setRedirect('entity.tour.delete_form', [
    'tour' => $entity
      ->id(),
  ]);
}