3 namespace Drupal\migrate\Event;
5 use Drupal\migrate\Plugin\MigrationInterface;
6 use Symfony\Component\EventDispatcher\Event;
9 * Wraps a row deletion event for event listeners.
11 class MigrateRowDeleteEvent extends Event {
16 * @var \Drupal\migrate\Plugin\MigrationInterface
21 * Values representing the destination ID.
25 protected $destinationIdValues;
28 * Constructs a row deletion event object.
30 * @param \Drupal\migrate\Plugin\MigrationInterface $migration
32 * @param array $destination_id_values
33 * Values represent the destination ID.
35 public function __construct(MigrationInterface $migration, $destination_id_values) {
36 $this->migration = $migration;
37 $this->destinationIdValues = $destination_id_values;
41 * Gets the migration entity.
43 * @return \Drupal\migrate\Plugin\MigrationInterface
44 * The migration being rolled back.
46 public function getMigration() {
47 return $this->migration;
51 * Gets the destination ID values.
54 * The destination ID as an array.
56 public function getDestinationIdValues() {
57 return $this->destinationIdValues;