MigrateRunnerTrait
trait MigrateRunnerTrait (View source)
Properties
protected MigrationPluginManagerInterface|null | $migrationPluginManager | ||
protected KeyValueStoreInterface | $keyValue |
Methods
Provide a migration plugin manager.
Returns the migration source rows count.
Returns the number of items that needs update.
Returns the number of unprocessed items.
Returns the number of imported items.
Returns the last imported date/time if any.
Pads an incomplete table row with empty cells.
Retrieves a list of active migrations.
Returns the migrate message logger.
Get the source ID keys.
Details
setMigrationPluginManager(MigrationPluginManagerInterface $migrationPluginManager)
Provide a migration plugin manager.
protected int|null
getMigrationSourceRowsCount(MigrationInterface $migration)
Returns the migration source rows count.
protected int
getMigrationNeedingUpdateCount(MigrationInterface $migration)
Returns the number of items that needs update.
protected int|null
getMigrationUnprocessedCount(MigrationInterface $migration)
Returns the number of unprocessed items.
protected int|null
getMigrationImportedCount(MigrationInterface $migration)
Returns the number of imported items.
protected string
getMigrationLastImportedTime(MigrationInterface $migration, DateFormatterInterface $dateFormatter)
Returns the last imported date/time if any.
protected array
padTableRow(array $row, array $fields)
Pads an incomplete table row with empty cells.
protected array
getMigrationList(string|null $migrationIds, string|null $tags)
Retrieves a list of active migrations.
protected MigrateMessageInterface
getMigrateMessage()
Returns the migrate message logger.
protected array
getSourceIdKeys(MigrateIdMapInterface $idMap)
Get the source ID keys.
protected array
preprocessMessageRow(StdClass $row, array $sourceIdKeys)
Preprocesses migrate message rows.
Given an item inside the list generated by MigrateIdMapInterface::getMessages(), prepare it for display.