You are here

public function MigrateInterruptionTest::postRowSaveEventRecorder in Drupal 9

Same name and namespace in other branches
  1. 8 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\Kernel

Code

public function postRowSaveEventRecorder(MigratePostRowSaveEvent $event, $name) {
  $event
    ->getMigration()
    ->interruptMigration(MigrationInterface::RESULT_INCOMPLETE);
}