You are here

public function MigrateInterruptionTest::postRowSaveEventRecorder in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Tests/MigrateInterruptionTest.php \Drupal\migrate\Tests\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/src/Tests/MigrateInterruptionTest.php, line 85
Contains \Drupal\migrate\Tests\MigrateInterruptionTest.

Class

MigrateInterruptionTest
Tests interruptions triggered during migrations.

Namespace

Drupal\migrate\Tests

Code

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