public function MigrateEventsTest::mapDeleteEventRecorder in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Kernel/MigrateEventsTest.php \Drupal\Tests\migrate\Kernel\MigrateEventsTest::mapDeleteEventRecorder()
Reacts to map delete event.
Parameters
\Drupal\migrate\Event\MigrateMapDeleteEvent $event: The migration event.
string $name: The event name.
File
- core/
modules/ migrate/ tests/ src/ Kernel/ MigrateEventsTest.php, line 146
Class
- MigrateEventsTest
- Tests events fired on migrations.
Namespace
Drupal\Tests\migrate\KernelCode
public function mapDeleteEventRecorder(MigrateMapDeleteEvent $event, $name) {
$this->state
->set('migrate_events_test.map_delete_event', [
'event_name' => $name,
'map' => $event
->getMap(),
'source_id' => $event
->getSourceId(),
]);
}