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