pluginManagerMigration = $pluginManagerMigration; parent::__construct(); } protected function configure() { $this ->setName('migrate:debug') ->setDescription($this->trans('commands.migrate.debug.description')) ->addArgument( 'tag', InputArgument::OPTIONAL, $this->trans('commands.migrate.debug.arguments.tag') ); } protected function execute(InputInterface $input, OutputInterface $output) { $io = new DrupalStyle($input, $output); $drupal_version = 'Drupal ' . $input->getArgument('tag'); $migrations = $this->getMigrations($drupal_version); $tableHeader = [ $this->trans('commands.migrate.debug.messages.id'), $this->trans('commands.migrate.debug.messages.description'), $this->trans('commands.migrate.debug.messages.tags'), ]; $tableRows = []; if (empty($migrations)) { $io->error( sprintf( $this->trans('commands.migrate.debug.messages.no-migrations'), count($migrations) ) ); } foreach ($migrations as $migration_id => $migration) { $tableRows[] = [$migration_id, $migration['description'], $migration['tags']]; } $io->table($tableHeader, $tableRows, 'compact'); } }