summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/migrate/src/Event/RollbackAwareInterface.php
blob: bbc8fe6c06ffe399f2c10215d37409bf7a319620 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);

}