You are here

public function MigrateMapSaveEvent::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Event/MigrateMapSaveEvent.php \Drupal\migrate\Event\MigrateMapSaveEvent::__construct()

Constructs a migration map event object.

Parameters

\Drupal\migrate\Plugin\MigrateIdMapInterface $map: Map plugin.

array $fields: Array of fields being saved to the map.

File

core/modules/migrate/src/Event/MigrateMapSaveEvent.php, line 40
Contains \Drupal\migrate\Event\MigrateMapSaveEvent.

Class

MigrateMapSaveEvent
Wraps a migrate map save event for event listeners.

Namespace

Drupal\migrate\Event

Code

public function __construct(MigrateIdMapInterface $map, array $fields) {
  $this->map = $map;
  $this->fields = $fields;
}