public function MigrateEventsTest::mapDeleteEventRecorder in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/src/Tests/MigrateEventsTest.php \Drupal\migrate\Tests\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/ src/ Tests/ MigrateEventsTest.php, line 156 - Contains \Drupal\migrate\Tests\MigrateEventsTest.
Class
- MigrateEventsTest
- Tests events fired on migrations.
Namespace
Drupal\migrate\TestsCode
public function mapDeleteEventRecorder(MigrateMapDeleteEvent $event, $name) {
$this->state
->set('migrate_events_test.map_delete_event', array(
'event_name' => $name,
'map' => $event
->getMap(),
'source_id' => $event
->getSourceId(),
));
}