function MigrateEventsTest::preRowSaveEventRecorder
Same name in other branches
- 9 core/modules/migrate/tests/src/Kernel/MigrateEventsTest.php \Drupal\Tests\migrate\Kernel\MigrateEventsTest::preRowSaveEventRecorder()
- 8.9.x core/modules/migrate/tests/src/Kernel/MigrateEventsTest.php \Drupal\Tests\migrate\Kernel\MigrateEventsTest::preRowSaveEventRecorder()
- 10 core/modules/migrate/tests/src/Kernel/MigrateEventsTest.php \Drupal\Tests\migrate\Kernel\MigrateEventsTest::preRowSaveEventRecorder()
Reacts to pre-row-save event.
Parameters
\Drupal\migrate\Event\MigratePreRowSaveEvent $event: The migration event.
string $name: The event name.
File
-
core/
modules/ migrate/ tests/ src/ Kernel/ MigrateEventsTest.php, line 192
Class
- MigrateEventsTest
- Tests events fired on migrations.
Namespace
Drupal\Tests\migrate\KernelCode
public function preRowSaveEventRecorder(MigratePreRowSaveEvent $event, $name) : void {
$this->state
->set('migrate_events_test.pre_row_save_event', [
'event_name' => $name,
'migration' => $event->getMigration(),
'row' => $event->getRow(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.