map = $map; $this->fields = $fields; } /** * Gets the map plugin. * * @return \Drupal\migrate\Plugin\MigrateIdMapInterface * The map plugin that caused the event to fire. */ public function getMap() { return $this->map; } /** * Gets the fields about to be saved to the map. * * @return array * Array of map fields, keyed by field name. */ public function getFields() { return $this->fields; } }