You are here

public function MigrateUpgradeCommands::initUpgrade in Migrate Upgrade 8.3

Alter field labels for non configure-only.

@hook init migrate:upgrade

File

src/Commands/MigrateUpgradeCommands.php, line 200

Class

MigrateUpgradeCommands
Migrate Upgrade drush commands.

Namespace

Drupal\migrate_upgrade\Commands

Code

public function initUpgrade(InputInterface $input, AnnotationData $annotationData) {

  // If configure option isn't specified, then rename the field label more
  // appropriately.
  if (!$input
    ->getOption('configure-only')) {
    $annotationData
      ->set('field-labels', 'original: Original migrations' . PHP_EOL . 'generated: Executed migrations');
  }
}