3 namespace Drupal\migrate\Event;
5 use Drupal\migrate\Plugin\MigrateIdMapInterface;
6 use Symfony\Component\EventDispatcher\Event;
9 * Wraps a migrate map delete event for event listeners.
11 class MigrateMapDeleteEvent extends Event {
16 * @var \Drupal\migrate\Plugin\MigrateIdMapInterface
21 * Array of source ID fields.
28 * Constructs a migration map delete event object.
30 * @param \Drupal\migrate\Plugin\MigrateIdMapInterface $map
32 * @param array $source_id
33 * Array of source ID fields representing the object being deleted from the map.
35 public function __construct(MigrateIdMapInterface $map, array $source_id) {
37 $this->sourceId = $source_id;
41 * Gets the map plugin.
43 * @return \Drupal\migrate\Plugin\MigrateIdMapInterface
44 * The map plugin that caused the event to fire.
46 public function getMap() {
51 * Gets the source ID of the item being removed from the map.
54 * Array of source ID fields.
56 public function getSourceId() {
57 return $this->sourceId;