Skip to content
Snippets Groups Projects
Commit 0fc922d9 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2534006 by phenaproxima: Move module-specific migration support into the contact module

parent c4281e42
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Showing with 28 additions and 25 deletions
......@@ -43,3 +43,14 @@ contact.settings:
user_default_enabled:
type: boolean
label: 'Personal contact form enabled by default'
migrate.source.d6_contact_settings:
type: migrate_source_sql
label: 'Drupal 6 contact settings'
mapping:
variables:
type: sequence
label: 'Variables'
sequence:
type: string
label: 'Variable'
......@@ -2,10 +2,10 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Plugin\migrate\source\d6\ContactCategory.
* Contains \Drupal\contact\Plugin\migrate\source\d6\ContactCategory.
*/
namespace Drupal\migrate_drupal\Plugin\migrate\source\d6;
namespace Drupal\contact\Plugin\migrate\source\d6;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
use Drupal\migrate\Row;
......
......@@ -2,10 +2,11 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Plugin\migrate\source\d6\ContactSettings.
* Contains \Drupal\contact\Plugin\migrate\source\d6\ContactSettings.
*/
namespace Drupal\migrate_drupal\Plugin\migrate\source\d6;
namespace Drupal\contact\Plugin\migrate\source\d6;
use Drupal\migrate_drupal\Plugin\migrate\source\Variable;
/**
......
......@@ -2,17 +2,18 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateContactCategoryTest.
* Contains \Drupal\contact\Tests\Migrate\d6\MigrateContactCategoryTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\contact\Tests\Migrate\d6;
use Drupal\contact\Entity\ContactForm;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* Migrate contact categories to contact.form.*.yml.
*
* @group migrate_drupal
* @group contact
*/
class MigrateContactCategoryTest extends MigrateDrupal6TestBase {
......
......@@ -2,17 +2,18 @@
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\d6\MigrateContactConfigsTest.
* Contains \Drupal\contact\Tests\Migrate\d6\MigrateContactConfigsTest.
*/
namespace Drupal\migrate_drupal\Tests\d6;
namespace Drupal\contact\Tests\Migrate\d6;
use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\migrate_drupal\Tests\d6\MigrateDrupal6TestBase;
/**
* Upgrade variables to contact.settings.yml.
*
* @group migrate_drupal
* @group contact
*/
class MigrateContactConfigsTest extends MigrateDrupal6TestBase {
......
......@@ -2,21 +2,21 @@
/**
* @file
* Contains \Drupal\Tests\migrate_drupal\Unit\source\d6\ContactCategoryTest.
* Contains \Drupal\Tests\contact\Unit\Plugin\migrate\source\d6\ContactCategoryTest.
*/
namespace Drupal\Tests\migrate_drupal\Unit\source\d6;
namespace Drupal\Tests\contact\Unit\Plugin\migrate\source\d6;
use Drupal\Tests\migrate\Unit\MigrateSqlSourceTestCase;
/**
* Tests D6 contact category source plugin.
*
* @group migrate_drupal
* @group contact
*/
class ContactCategoryTest extends MigrateSqlSourceTestCase {
const PLUGIN_CLASS = 'Drupal\migrate_drupal\Plugin\migrate\source\d6\ContactCategory';
const PLUGIN_CLASS = 'Drupal\contact\Plugin\migrate\source\d6\ContactCategory';
protected $migrationConfiguration = array(
'id' => 'test',
......
......@@ -146,17 +146,6 @@ migrate.source.d6_comment_variable:
type: migrate_entity_constant
label: 'Constants'
migrate.source.d6_contact_settings:
type: migrate_source_sql
label: 'Drupal 6 contact settings'
mapping:
variables:
type: sequence
label: 'Variables'
sequence:
type: string
label: 'Variable'
migrate.source.d6_view_mode:
type: migrate_source_sql
label: 'Drupal 6 view mode'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment