Version 1
[yaffs-website] / web / core / modules / migrate / src / Event / RollbackAwareInterface.php
1 <?php
2
3 namespace Drupal\migrate\Event;
4
5 /**
6  * Interface for plugins that react to pre- or post-rollback events.
7  */
8 interface RollbackAwareInterface {
9
10   /**
11    * Performs pre-rollback tasks.
12    *
13    * @param \Drupal\migrate\Event\MigrateRollbackEvent $event
14    *   The pre-rollback event object.
15    */
16   public function preRollback(MigrateRollbackEvent $event);
17
18   /**
19    * Performs post-rollback tasks.
20    *
21    * @param \Drupal\migrate\Event\MigrateRollbackEvent $event
22    *   The post-rollback event object.
23    */
24   public function postRollback(MigrateRollbackEvent $event);
25
26 }