public function MigrateEventsTest::mapSaveEventRecorder in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Kernel/MigrateEventsTest.php \Drupal\Tests\migrate\Kernel\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/ tests/ src/ Kernel/ MigrateEventsTest.php, line 130
Class
- MigrateEventsTest
- Tests events fired on migrations.
Namespace
Drupal\Tests\migrate\KernelCode
public function mapSaveEventRecorder(MigrateMapSaveEvent $event, $name) {
$this->state
->set('migrate_events_test.map_save_event', [
'event_name' => $name,
'map' => $event
->getMap(),
'fields' => $event
->getFields(),
]);
}