protected function MigrateUpgradeDrushRunner::setOptions in Migrate Upgrade 8.3
Set options parameters according to Drush version.
Parameters
array $options: Drush options parameters.
1 call to MigrateUpgradeDrushRunner::setOptions()
- MigrateUpgradeDrushRunner::__construct in src/
MigrateUpgradeDrushRunner.php - MigrateUpgradeDrushRunner constructor.
File
- src/
MigrateUpgradeDrushRunner.php, line 113
Class
- MigrateUpgradeDrushRunner
- Class MigrateUpgradeDrushRunner.
Namespace
Drupal\migrate_upgradeCode
protected function setOptions(array $options = []) {
$this->options = $options;
// Drush <= 8.
if (empty($this->options)) {
$this->options = [
'legacy-db-key' => drush_get_option('legacy-db-key'),
'legacy-db-url' => drush_get_option('legacy-db-url'),
'legacy-db-prefix' => drush_get_option('legacy-db-prefix'),
'legacy-root' => drush_get_option('legacy-root'),
'debug' => drush_get_option('debug'),
'migration-prefix' => drush_get_option('migration-prefix', 'upgrade_'),
];
}
$this->options = array_merge([
'legacy-db-key' => '',
'legacy-db-url' => '',
'legacy-db-prefix' => '',
'legacy-root' => '',
'debug' => '',
'migration-prefix' => 'upgrade_',
], $this->options);
}