Commit 7bc3890c authored by webchick's avatar webchick

Issue #2534010 by phenaproxima, mikeryan: Move module-specific migration...

Issue #2534010 by phenaproxima, mikeryan: Move module-specific migration support into the field module
parent 2b9b8d0e
migrate.source.d6_field_instance_per_form_display:
type: migrate_source_sql
label: 'Drupal 6 field instance form display'
mapping:
constants:
type: migrate_entity_constant
label: 'Constants'
migrate.source.d6_field:
type: migrate_source_sql
label: 'Drupal 6 field'
mapping:
constants:
type: migrate_entity_constant
label: 'Constants'
migrate.source.d6_field_formatter_settings:
type: migrate_source_sql
label: 'Drupal 6 field formatter settings'
mapping:
constants:
type: migrate_entity_constant
label: 'Constants'
migrate.source.d6_field_instance:
type: migrate_source_sql
label: 'Drupal 6 field instance'
mapping:
constants:
type: migrate_entity_constant
label: 'Constants'
migrate.source.d6_field_instance_per_view_mode:
type: migrate_source_sql
label: 'Drupal 6 field formatter'
mapping:
constants:
type: migrate_entity_constant
label: 'Constants'
......@@ -2,12 +2,11 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Plugin\migrate\process\d6\FieldFormatterSettingsDefaults.
* Contains \Drupal\field\Plugin\migrate\process\d6\FieldFormatterSettingsDefaults.
*/
namespace Drupal\migrate_drupal\Plugin\migrate\process\d6;
namespace Drupal\field\Plugin\migrate\process\d6;
use Drupal\migrate\MigrateException;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\Row;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Plugin\migrate\process\d6\FieldIdGenerator.
* Contains \Drupal\field\Plugin\migrate\process\d6\FieldIdGenerator.
*/
namespace Drupal\migrate_drupal\Plugin\migrate\process\d6;
namespace Drupal\field\Plugin\migrate\process\d6;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
......
<?php
/**
* @file
* Contains \Drupal\migrate_drupal\Plugin\migrate\process\d6\FieldInstanceDefaults.
* Contains \Drupal\field\Plugin\migrate\process\d6\FieldInstanceDefaults.
*/
namespace Drupal\migrate_drupal\Plugin\migrate\process\d6;
namespace Drupal\field\Plugin\migrate\process\d6;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
......
<?php
/**
* @file
* Contains \Drupal\migrate_drupal\Plugin\migrate\process\d6\FieldInstanceSettings.
* Contains \Drupal\field\Plugin\migrate\process\d6\FieldInstanceSettings.
*/
namespace Drupal\migrate_drupal\Plugin\migrate\process\d6;
namespace Drupal\field\Plugin\migrate\process\d6;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Plugin\migrate\process\d6\FieldInstanceWidgetSettings.
* Contains \Drupal\field\Plugin\migrate\process\d6\FieldInstanceWidgetSettings.
*/
namespace Drupal\migrate_drupal\Plugin\migrate\process\d6;
namespace Drupal\field\Plugin\migrate\process\d6;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Plugin\migrate\process\d6\FieldSettings.
* Contains \Drupal\field\Plugin\migrate\process\d6\FieldSettings.
*/
namespace Drupal\migrate_drupal\Plugin\migrate\process\d6;
namespace Drupal\field\Plugin\migrate\process\d6;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Plugin\migrate\process\d6\FieldTypeDefaults.
* Contains \Drupal\field\Plugin\migrate\process\d6\FieldTypeDefaults.
*/
namespace Drupal\migrate_drupal\Plugin\migrate\process\d6;
namespace Drupal\field\Plugin\migrate\process\d6;
use Drupal\migrate\MigrateException;
use Drupal\migrate\ProcessPluginBase;
......@@ -13,7 +13,7 @@
use Drupal\migrate\Row;
/**
* Gives us a change to set per field defaults.
* Gives us a chance to set per field defaults.
*
* @MigrateProcessPlugin(
* id = "field_type_defaults"
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Plugin\migrate\source\d6\Field.
* Contains \Drupal\field\Plugin\migrate\source\d6\Field.
*/
namespace Drupal\migrate_drupal\Plugin\migrate\source\d6;
namespace Drupal\field\Plugin\migrate\source\d6;
use Drupal\migrate\Row;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Plugin\migrate\source\d6\FieldInstance.
* Contains \Drupal\field\Plugin\migrate\source\d6\FieldInstance.
*/
namespace Drupal\migrate_drupal\Plugin\migrate\source\d6;
namespace Drupal\field\Plugin\migrate\source\d6;
use Drupal\migrate\Row;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Plugin\migrate\source\d6\FieldInstancePerFormDisplay.
* Contains \Drupal\field\Plugin\migrate\source\d6\FieldInstancePerFormDisplay.
*/
namespace Drupal\migrate_drupal\Plugin\migrate\source\d6;
namespace Drupal\field\Plugin\migrate\source\d6;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Plugin\migrate\source\d6\FieldInstancePerViewMode.
* Contains \Drupal\field\Plugin\migrate\source\d6\FieldInstancePerViewMode.
*/
namespace Drupal\migrate_drupal\Plugin\migrate\source\d6;
namespace Drupal\field\Plugin\migrate\source\d6;
use Drupal\node\Plugin\migrate\source\d6\ViewModeBase;
......
......@@ -2,17 +2,18 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateFieldFormatterSettingsTest.
* Contains \Drupal\field\Tests\Migrate\d6\MigrateFieldFormatterSettingsTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\field\Tests\Migrate\d6;
use Drupal\Core\Entity\Entity\EntityViewMode;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* Upgrade field formatter settings to entity.display.*.*.yml.
*
* @group migrate_drupal
* @group field
*/
class MigrateFieldFormatterSettingsTest extends MigrateDrupal6TestBase {
......
......@@ -2,18 +2,19 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateFieldInstanceTest.
* Contains \Drupal\field\Tests\Migrate\d6\MigrateFieldInstanceTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\field\Tests\Migrate\d6;
use Drupal\field\Entity\FieldConfig;
use Drupal\link\LinkItemInterface;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* Migrate field instances.
*
* @group migrate_drupal
* @group field
*/
class MigrateFieldInstanceTest extends MigrateDrupal6TestBase {
......
......@@ -2,17 +2,18 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateFieldTest.
* Contains \Drupal\field\Tests\Migrate\d6\MigrateFieldTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\field\Tests\Migrate\d6;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* Migrate fields.
*
* @group migrate_drupal
* @group field
*/
class MigrateFieldTest extends MigrateDrupal6TestBase {
......
......@@ -2,15 +2,17 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateFieldWidgetSettingsTest.
* Contains \Drupal\field\Tests\Migrate\d6\MigrateFieldWidgetSettingsTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\field\Tests\Migrate\d6;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* Migrate field widget settings.
*
* @group migrate_drupal
* @group field
*/
class MigrateFieldWidgetSettingsTest extends MigrateDrupal6TestBase {
......
......@@ -2,23 +2,23 @@
/**
* @file
* Contains \Drupal\Tests\migrate_drupal\Unit\source\d6\FieldInstancePerViewModeTest.
* Contains \Drupal\Tests\field\Unit\Plugin\migrate\source\d6\FieldInstancePerViewModeTest.
*/
namespace Drupal\Tests\migrate_drupal\Unit\source\d6;
namespace Drupal\Tests\field\Unit\Plugin\migrate\source\d6;
use Drupal\Tests\migrate\Unit\MigrateSqlSourceTestCase;
/**
* Tests D6 fields per view mode source plugin.
*
* @group migrate_drupal
* @group field
*/
class FieldInstancePerViewModeTest extends MigrateSqlSourceTestCase {
// The plugin system is not working during unit testing so the source plugin
// class needs to be manually specified.
const PLUGIN_CLASS = 'Drupal\migrate_drupal\Plugin\migrate\source\d6\FieldInstancePerViewMode';
const PLUGIN_CLASS = 'Drupal\field\Plugin\migrate\source\d6\FieldInstancePerViewMode';
// The fake Migration configuration entity.
protected $migrationConfiguration = array(
......
......@@ -2,23 +2,23 @@
/**
* @file
* Contains \Drupal\Tests\migrate_drupal\Unit\source\d6\FieldInstanceTest.
* Contains \Drupal\Tests\field\Unit\Plugin\migrate\source\d6\FieldInstanceTest.
*/
namespace Drupal\Tests\migrate_drupal\Unit\source\d6;
namespace Drupal\Tests\field\Unit\Plugin\migrate\source\d6;
use Drupal\Tests\migrate\Unit\MigrateSqlSourceTestCase;
/**
* Tests D6 field instance source plugin.
*
* @group migrate_drupal
* @group field
*/
class FieldInstanceTest extends MigrateSqlSourceTestCase {
// The plugin system is not working during unit testing so the source plugin
// class needs to be manually specified.
const PLUGIN_CLASS = 'Drupal\migrate_drupal\Plugin\migrate\source\d6\FieldInstance';
const PLUGIN_CLASS = 'Drupal\field\Plugin\migrate\source\d6\FieldInstance';
// The fake Migration configuration entity.
protected $migrationConfiguration = [
......
......@@ -2,23 +2,23 @@
/**
* @file
* Contains \Drupal\Tests\migrate_drupal\Unit\source\d6\FieldTest.
* Contains \Drupal\Tests\field\Unit\Plugin\migrate\source\d6\FieldTest.
*/
namespace Drupal\Tests\migrate_drupal\Unit\source\d6;
namespace Drupal\Tests\field\Unit\Plugin\migrate\source\d6;
use Drupal\Tests\migrate\Unit\MigrateSqlSourceTestCase;
/**
* Tests D6 field source plugin.
*
* @group migrate_drupal
* @group field
*/
class FieldTest extends MigrateSqlSourceTestCase {
// The plugin system is not working during unit testing so the source plugin
// class needs to be manually specified.
const PLUGIN_CLASS = 'Drupal\migrate_drupal\Plugin\migrate\source\d6\Field';
const PLUGIN_CLASS = 'Drupal\field\Plugin\migrate\source\d6\Field';
// The fake Migration configuration entity.
protected $migrationConfiguration = array(
......
......@@ -39,22 +39,6 @@ migrate.source.variable:
type: string
label: 'Slash'
migrate.source.d6_field_instance_per_form_display:
type: migrate_source_sql
label: 'Drupal 6 field instance form display'
mapping:
constants:
type: migrate_entity_constant
label: 'Constants'
migrate.source.d6_field:
type: migrate_source_sql
label: 'Drupal 6 field'
mapping:
constants:
type: migrate_entity_constant
label: 'Constants'
migrate.source.variable_multirow:
type: migrate_source_sql
label: 'Drupal variable multirow'
......@@ -66,14 +50,6 @@ migrate.source.variable_multirow:
type: string
label: 'Variable'
migrate.source.d6_field_formatter_settings:
type: migrate_source_sql
label: 'Drupal 6 field formatter settings'
mapping:
constants:
type: migrate_entity_constant
label: 'Constants'
migrate.source.d6_upload_instance:
type: migrate_source_sql
label: 'Drupal 6 upload form display'
......@@ -82,22 +58,6 @@ migrate.source.d6_upload_instance:
type: migrate_entity_constant
label: 'Constants'
migrate.source.d6_field_instance:
type: migrate_source_sql
label: 'Drupal 6 field instance'
mapping:
constants:
type: migrate_entity_constant
label: 'Constants'
migrate.source.d6_field_instance_per_view_mode:
type: migrate_source_sql
label: 'Drupal 6 field formatter'
mapping:
constants:
type: migrate_entity_constant
label: 'Constants'
migrate_entity_constant:
type: mapping
mapping:
......
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