Version 1
[yaffs-website] / web / core / modules / system / tests / modules / entity_test / src / EntityTestDeleteForm.php
diff --git a/web/core/modules/system/tests/modules/entity_test/src/EntityTestDeleteForm.php b/web/core/modules/system/tests/modules/entity_test/src/EntityTestDeleteForm.php
new file mode 100644 (file)
index 0000000..0c24456
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+namespace Drupal\entity_test;
+
+use Drupal\Core\Entity\ContentEntityDeleteForm;
+use Drupal\Core\Url;
+
+/**
+ * Provides the entity_test delete form.
+ */
+class EntityTestDeleteForm extends ContentEntityDeleteForm {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getCancelUrl() {
+    return new Url('<front>');
+  }
+
+}