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