function MigrateInterruptionTest::postRowSaveEventRecorder
Same name in other branches
- 9 core/modules/migrate/tests/src/Kernel/MigrateInterruptionTest.php \Drupal\Tests\migrate\Kernel\MigrateInterruptionTest::postRowSaveEventRecorder()
- 8.9.x core/modules/migrate/tests/src/Kernel/MigrateInterruptionTest.php \Drupal\Tests\migrate\Kernel\MigrateInterruptionTest::postRowSaveEventRecorder()
- 11.x core/modules/migrate/tests/src/Kernel/MigrateInterruptionTest.php \Drupal\Tests\migrate\Kernel\MigrateInterruptionTest::postRowSaveEventRecorder()
Reacts to post-row-save event.
Parameters
\Drupal\migrate\Event\MigratePostRowSaveEvent $event: The migration event.
string $name: The event name.
File
-
core/
modules/ migrate/ tests/ src/ Kernel/ MigrateInterruptionTest.php, line 77
Class
- MigrateInterruptionTest
- Tests interruptions triggered during migrations.
Namespace
Drupal\Tests\migrate\KernelCode
public function postRowSaveEventRecorder(MigratePostRowSaveEvent $event, $name) {
$event->getMigration()
->interruptMigration(MigrationInterface::RESULT_INCOMPLETE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.