Version 1
[yaffs-website] / web / core / modules / migrate / src / Event / RollbackAwareInterface.php
diff --git a/web/core/modules/migrate/src/Event/RollbackAwareInterface.php b/web/core/modules/migrate/src/Event/RollbackAwareInterface.php
new file mode 100644 (file)
index 0000000..bbc8fe6
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+namespace Drupal\migrate\Event;
+
+/**
+ * Interface for plugins that react to pre- or post-rollback events.
+ */
+interface RollbackAwareInterface {
+
+  /**
+   * Performs pre-rollback tasks.
+   *
+   * @param \Drupal\migrate\Event\MigrateRollbackEvent $event
+   *   The pre-rollback event object.
+   */
+  public function preRollback(MigrateRollbackEvent $event);
+
+  /**
+   * Performs post-rollback tasks.
+   *
+   * @param \Drupal\migrate\Event\MigrateRollbackEvent $event
+   *   The post-rollback event object.
+   */
+  public function postRollback(MigrateRollbackEvent $event);
+
+}