Version 1
[yaffs-website] / web / core / modules / action / src / Form / ActionDeleteForm.php
diff --git a/web/core/modules/action/src/Form/ActionDeleteForm.php b/web/core/modules/action/src/Form/ActionDeleteForm.php
new file mode 100644 (file)
index 0000000..9e7f0a5
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+namespace Drupal\action\Form;
+
+use Drupal\Core\Entity\EntityDeleteForm;
+use Drupal\Core\Url;
+
+/**
+ * Builds a form to delete an action.
+ */
+class ActionDeleteForm extends EntityDeleteForm {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getCancelUrl() {
+    return new Url('entity.action.collection');
+  }
+
+}