Commit 692e6bd4 authored by quietone's avatar quietone Committed by heddn

Issue #2971888 by quietone, heddn: Cleanup renaming that was missed

parent 15a8c6a0
......@@ -68,8 +68,8 @@ function commerce_migrate_commerce_migration_plugins_alter(array &$migrations) {
],
];
$migration['process'] = array_merge($attributes_process, $migration['process']);
$migration['process']['field_name'] = ['plugin' => 'commerce_field_name'];
$migration['process']['settings/target_type'] = ['plugin' => 'commerce_attribute_target_type'];
$migration['process']['field_name'] = ['plugin' => 'commerce1_field_name'];
$migration['process']['settings/target_type'] = ['plugin' => 'commerce1_attribute_target_type'];
}
// Field instance.
......
......@@ -4,7 +4,7 @@ migration_tags:
- Drupal 7
- Commerce
source:
plugin: commerce_currency
plugin: commerce1_currency
variables:
- commerce_default_currency
process:
......
......@@ -25,7 +25,7 @@ process:
changed: changed
data: data
price:
plugin: commerce_migrate_commerce_price
plugin: commerce1_migrate_commerce_price
source: commerce_price
destination:
plugin: 'entity:commerce_product_variation'
......
......@@ -4,7 +4,7 @@ migration_tags:
- Drupal 7
- Commerce
source:
plugin: d7_shipping_flat_rate
plugin: commerce1_shipping_flat_rate
process:
shipping_method_id: shipping_method
name: title
......
......@@ -46,7 +46,7 @@ class CommercePrice extends FieldPluginBase {
public function processFieldValues(MigrationInterface $migration, $field_name, $data) {
$destination_field_name = isset($this->fieldNameMap[$field_name]) ? $this->fieldNameMap[$field_name] : $field_name;
$process = [
'plugin' => 'commerce_migrate_commerce_price',
'plugin' => 'commerce1_migrate_commerce_price',
'source' => $field_name,
];
$migration->setProcessOfProperty($destination_field_name, $process);
......
......@@ -10,7 +10,7 @@ use Drupal\migrate\Row;
* Calculate the field name.
*
* @MigrateProcessPlugin(
* id = "commerce_attribute_target_type"
* id = "commerce1_attribute_target_type"
* )
*/
class CommerceAttributeTargetType extends ProcessPluginBase {
......
......@@ -10,7 +10,7 @@ use Drupal\migrate\Row;
* Calculate the field name.
*
* @MigrateProcessPlugin(
* id = "commerce_field_name"
* id = "commerce1_field_name"
* )
*/
class CommerceFieldName extends ProcessPluginBase {
......
......@@ -10,7 +10,7 @@ use Drupal\migrate\Row;
* Migrate commerce price from Commerce 1 to Commerce 2.
*
* @MigrateProcessPlugin(
* id = "commerce_migrate_commerce_price"
* id = "commerce1_migrate_commerce_price"
* )
*/
class CommercePrice extends ProcessPluginBase {
......
......@@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* Gets the Commerce 1 currency data.
*
* @MigrateSource(
* id = "commerce_currency",
* id = "commerce1_currency",
* source_module = "commerce_price"
* )
*/
......
<?php
namespace Drupal\commerce_migrate_commerce\Plugin\migrate\source\d7;
namespace Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1;
use CommerceGuys\Intl\Currency\CurrencyRepository;
use Drupal\migrate\Row;
......@@ -10,7 +10,7 @@ use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
* Gets the flat rate shipping service.
*
* @MigrateSource(
* id = "d7_shipping_flat_rate",
* id = "commerce1_shipping_flat_rate",
* source_module = "commerce_order"
* )
*/
......
......@@ -110,7 +110,7 @@ function commerce_migrate_ubercart_migration_plugins_alter(&$migrations) {
// Add a process so it is possible to create both a node and product
// field storage for the given field.
$migrations[$key]['process']['ubercart_field_storage'] = [
'plugin' => 'ubercart_field_storage_generate',
'plugin' => 'uc6_field_storage_generate',
'source' => 'ubercart_entity_type',
];
}
......
......@@ -14,7 +14,7 @@ use Drupal\migrate\Row;
* two entities while processing a row.
*
* @MigrateProcessPlugin(
* id = "ubercart_field_storage_generate"
* id = "uc6_field_storage_generate"
* )
*/
class UbercartFieldStorageGenerate extends ProcessPluginBase {
......
<?php
namespace Drupal\commerce_migrate\Plugin\migrate\process\d7;
namespace Drupal\commerce_migrate\Plugin\migrate\process;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\Plugin\migrate\process\Migration;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment