MigrateRollbackCommand
final class MigrateRollbackCommand extends Command (View source)
Traits
A copy of \Drupal\Core\DependencyInjection\AutowireTrait with first params' type hint changed.
Constants
NAME |
|
Properties
protected MigrationPluginManagerInterface|null | $migrationPluginManager | from MigrateRunnerTrait | |
protected KeyValueStoreInterface | $keyValue | from MigrateRunnerTrait |
Methods
Instantiates a new instance of the implementing class using autowiring.
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.
No description
No description
No description
Details
static
create(ContainerInterface $container)
Instantiates a new instance of the implementing class using autowiring.
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.
__construct(KeyValueFactoryInterface $keyValueFactory, ContainerInterface $container, LoggerInterface $logger)
No description
protected void
configure()
No description
int
execute(InputInterface $input, OutputInterface $output)
No description