class MigrateUpgradeImportBatch (View source)

Runs a single migration batch.

Constants

MESSAGE_LENGTH

Maximum number of previous messages to display.

Properties

static protected int $numProcessed

The processed items for one batch of a given migration.

static protected bool $listenersAdded

Ensure we only add the listeners once per request.

static protected int $maxExecTime

The maximum length in seconds to allow processing in a request.

static protected MigrateMessageCapture $messages

MigrateMessage instance to capture messages during the migration process.

static protected MigrationInterface[] $followUpMigrations

The follow-up migrations.

Methods

static 
run(int[] $initial_ids, array $config, array $context)

Runs a single migrate batch import.

static 
finished(bool $success, array $results, array $operations, string $elapsed)

Callback executed when the Migrate Upgrade Import batch process completes.

static 
onPostRowSave(MigratePostRowSaveEvent $event)

Reacts to item import.

static 
onPostImport(MigrateImportEvent $event)

Adds follow-up migrations.

static 
onPostRowDelete(MigrateRowDeleteEvent $event)

Reacts to item deletion.

static 
onMapSave(MigrateMapSaveEvent $event)

Counts up any map save events.

static 
onMapDelete(MigrateMapDeleteEvent $event)

Counts up any map delete events.

static 
onIdMapMessage(MigrateIdMapMessageEvent $event)

Displays any messages being logged to the ID map.

Details

static run(int[] $initial_ids, array $config, array $context)

Runs a single migrate batch import.

Parameters

int[] $initial_ids

The full set of migration IDs to import.

array $config

An array of additional configuration from the form.

array $context

The batch context.

static finished(bool $success, array $results, array $operations, string $elapsed)

Callback executed when the Migrate Upgrade Import batch process completes.

Parameters

bool $success

TRUE if batch successfully completed.

array $results

Batch results.

array $operations

An array of methods run in the batch.

string $elapsed

The time to run the batch.

static onPostRowSave(MigratePostRowSaveEvent $event)

Reacts to item import.

Parameters

MigratePostRowSaveEvent $event

The post-save event.

static onPostImport(MigrateImportEvent $event)

Adds follow-up migrations.

Parameters

MigrateImportEvent $event

The import event.

static onPostRowDelete(MigrateRowDeleteEvent $event)

Reacts to item deletion.

Parameters

MigrateRowDeleteEvent $event

The post-save event.

static onMapSave(MigrateMapSaveEvent $event)

Counts up any map save events.

Parameters

MigrateMapSaveEvent $event

The map event.

static onMapDelete(MigrateMapDeleteEvent $event)

Counts up any map delete events.

Parameters

MigrateMapDeleteEvent $event

The map event.

static onIdMapMessage(MigrateIdMapMessageEvent $event)

Displays any messages being logged to the ID map.

Parameters

MigrateIdMapMessageEvent $event

The message event.