You are here

public function MigrateEventsTest::mapSaveEventRecorder in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Tests/MigrateEventsTest.php \Drupal\migrate\Tests\MigrateEventsTest::mapSaveEventRecorder()

Reacts to map save event.

Parameters

\Drupal\Migrate\Event\MigrateMapSaveEvent $event: The migration event.

string $name: The event name.

File

core/modules/migrate/src/Tests/MigrateEventsTest.php, line 140
Contains \Drupal\migrate\Tests\MigrateEventsTest.

Class

MigrateEventsTest
Tests events fired on migrations.

Namespace

Drupal\migrate\Tests

Code

public function mapSaveEventRecorder(MigrateMapSaveEvent $event, $name) {
  $this->state
    ->set('migrate_events_test.map_save_event', array(
    'event_name' => $name,
    'map' => $event
      ->getMap(),
    'fields' => $event
      ->getFields(),
  ));
}