You are here

TourDeleteForm.php in Tour UI 8

File

src/Form/TourDeleteForm.php
View source
<?php

namespace Drupal\tour_ui\Form;

use Drupal\Core\Entity\EntityDeleteForm;
use Drupal\Core\Url;

/**
 * Builds the form to delete a tour.
 */
class TourDeleteForm extends EntityDeleteForm {

  /**
   * {@inheritdoc}
   */
  public function getCancelUrl() {
    return Url::fromRoute('entity.tour.collection');
  }

}

Classes

Namesort descending Description
TourDeleteForm Builds the form to delete a tour.