public static function MigrateUpgradeRunBatch::onPostRowDelete in Migrate Upgrade 8
Reacts to item deletion.
Parameters
\Drupal\migrate\Event\MigrateRowDeleteEvent $event: The post-save event.
File
- src/
MigrateUpgradeRunBatch.php, line 324 - Contains \Drupal\migrate_upgrade\MigrateUpgradeRunBatch.
Class
- MigrateUpgradeRunBatch
- Runs a single migration batch.
Namespace
Drupal\migrate_upgradeCode
public static function onPostRowDelete(MigrateRowDeleteEvent $event) {
// We want to interrupt this batch and start a fresh one.
if (time() - REQUEST_TIME > static::$maxExecTime) {
$event
->getMigration()
->interruptMigration(MigrationInterface::RESULT_INCOMPLETE);
}
}