function MigrateMapSaveEvent::__construct

Same name in other branches
  1. 9 core/modules/migrate/src/Event/MigrateMapSaveEvent.php \Drupal\migrate\Event\MigrateMapSaveEvent::__construct()
  2. 8.9.x core/modules/migrate/src/Event/MigrateMapSaveEvent.php \Drupal\migrate\Event\MigrateMapSaveEvent::__construct()
  3. 11.x 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 35

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.