function MigrateUpgradeImportBatch::onPostRowSave
Same name in other branches
- 8.9.x core/modules/migrate_drupal_ui/src/Batch/MigrateUpgradeImportBatch.php \Drupal\migrate_drupal_ui\Batch\MigrateUpgradeImportBatch::onPostRowSave()
- 10 core/modules/migrate_drupal_ui/src/Batch/MigrateUpgradeImportBatch.php \Drupal\migrate_drupal_ui\Batch\MigrateUpgradeImportBatch::onPostRowSave()
- 11.x core/modules/migrate_drupal_ui/src/Batch/MigrateUpgradeImportBatch.php \Drupal\migrate_drupal_ui\Batch\MigrateUpgradeImportBatch::onPostRowSave()
Reacts to item import.
Parameters
\Drupal\migrate\Event\MigratePostRowSaveEvent $event: The post-save event.
File
-
core/
modules/ migrate_drupal_ui/ src/ Batch/ MigrateUpgradeImportBatch.php, line 294
Class
- MigrateUpgradeImportBatch
- Runs a single migration batch.
Namespace
Drupal\migrate_drupal_ui\BatchCode
public static function onPostRowSave(MigratePostRowSaveEvent $event) {
// We want to interrupt this batch and start a fresh one.
if (time() - REQUEST_TIME > static::$maxExecTime) {
$event->getMigration()
->interruptMigration(MigrationInterface::RESULT_INCOMPLETE);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.