3 namespace Drupal\migrate\Event;
5 use Drupal\migrate\Plugin\MigrateIdMapInterface;
6 use Symfony\Component\EventDispatcher\Event;
9 * Wraps a migrate map save event for event listeners.
11 class MigrateMapSaveEvent extends Event {
16 * @var \Drupal\migrate\Plugin\MigrateIdMapInterface
21 * Array of fields being saved to the map, keyed by field name.
28 * Constructs a migration map event object.
30 * @param \Drupal\migrate\Plugin\MigrateIdMapInterface $map
32 * @param array $fields
33 * Array of fields being saved to the map.
35 public function __construct(MigrateIdMapInterface $map, array $fields) {
37 $this->fields = $fields;
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 fields about to be saved to the map.
54 * Array of map fields, keyed by field name.
56 public function getFields() {