3 namespace Drupal\migrate\Event;
5 use Drupal\migrate\Plugin\MigrationInterface;
6 use Symfony\Component\EventDispatcher\Event;
9 * Wraps a pre- or post-rollback event for event listeners.
11 class MigrateRollbackEvent extends Event {
16 * @var \Drupal\migrate\Plugin\MigrationInterface
21 * Constructs an rollback event object.
23 * @param \Drupal\migrate\Plugin\MigrationInterface $migration
26 public function __construct(MigrationInterface $migration) {
27 $this->migration = $migration;
31 * Gets the migration entity.
33 * @return \Drupal\migrate\Plugin\MigrationInterface
34 * The migration entity involved.
36 public function getMigration() {
37 return $this->migration;