You are here

protected function MigrateUpgradeDrushRunner::modifyId in Migrate Upgrade 8.3

Same name and namespace in other branches
  1. 8.2 src/MigrateUpgradeDrushRunner.php \Drupal\migrate_upgrade\MigrateUpgradeDrushRunner::modifyId()

Modify an ID.

Parameters

string $id: The original core plugin ID.

Return value

string The ID modified to serve as a configuration entity ID.

3 calls to MigrateUpgradeDrushRunner::modifyId()
MigrateUpgradeDrushRunner::prefixFileMigration in src/MigrateUpgradeDrushRunner.php
For D6 file fields, make sure the d6_file migration is prefixed.
MigrateUpgradeDrushRunner::substituteIds in src/MigrateUpgradeDrushRunner.php
Rewrite any migration plugin IDs so they won't conflict with the core IDs.
MigrateUpgradeDrushRunner::substituteMigrationIds in src/MigrateUpgradeDrushRunner.php
Recursively substitute IDs for migration plugins.

File

src/MigrateUpgradeDrushRunner.php, line 424

Class

MigrateUpgradeDrushRunner
Class MigrateUpgradeDrushRunner.

Namespace

Drupal\migrate_upgrade

Code

protected function modifyId($id) {
  return $this->options['migration-prefix'] . str_replace(':', '_', $id);
}