Added Entity and Entity Reference Revisions which got dropped somewhere along the...
[yaffs-website] / web / modules / contrib / entity / src / Plugin / Action / DeleteAction.php
diff --git a/web/modules/contrib/entity/src/Plugin/Action/DeleteAction.php b/web/modules/contrib/entity/src/Plugin/Action/DeleteAction.php
new file mode 100644 (file)
index 0000000..68a8bc5
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+namespace Drupal\entity\Plugin\Action;
+
+use Drupal\Core\Action\Plugin\Action\DeleteAction as CoreDeleteAction;
+
+@trigger_error('\Drupal\entity\Plugin\Action\DeleteAction has been deprecated in favor of \Drupal\Core\Action\Plugin\Action\DeleteAction. Use that instead.');
+
+/**
+ * Redirects to an entity deletion form.
+ *
+ * @deprecated Use "entity:delete_action" instead.
+ *
+ * @Action(
+ *   id = "entity_delete_action",
+ *   label = @Translation("Delete entity"),
+ *   deriver = "Drupal\entity\Plugin\Action\Derivative\DeleteActionDeriver",
+ * )
+ */
+class DeleteAction extends CoreDeleteAction {}