Issue #3261957 by longwave, quietone, andypost: Properly deprecate migrate_drupal_multilingual for future removal
(cherry picked from commit 258c837161
)
merge-requests/1743/merge
parent
644bec3c0d
commit
6f1a617a7d
|
@ -19,8 +19,6 @@ class FollowUpMigrationsTest extends MigrateNodeTestBase {
|
||||||
'content_translation',
|
'content_translation',
|
||||||
'language',
|
'language',
|
||||||
'menu_ui',
|
'menu_ui',
|
||||||
// A requirement for d6_node_translation.
|
|
||||||
'migrate_drupal_multilingual',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -27,8 +27,6 @@ class FollowUpMigrationsTest extends MigrateDrupal7TestBase {
|
||||||
'language',
|
'language',
|
||||||
'link',
|
'link',
|
||||||
'menu_ui',
|
'menu_ui',
|
||||||
// A requirement for translation migrations.
|
|
||||||
'migrate_drupal_multilingual',
|
|
||||||
'node',
|
'node',
|
||||||
'taxonomy',
|
'taxonomy',
|
||||||
'telephone',
|
'telephone',
|
||||||
|
|
|
@ -2,7 +2,8 @@ name: 'Migrate Drupal Multilingual'
|
||||||
type: module
|
type: module
|
||||||
description: 'Provides a requirement for multilingual migrations.'
|
description: 'Provides a requirement for multilingual migrations.'
|
||||||
package: 'Core (Experimental)'
|
package: 'Core (Experimental)'
|
||||||
lifecycle: experimental
|
lifecycle: obsolete
|
||||||
|
lifecycle_link: https://www.drupal.org/node/3080264
|
||||||
version: VERSION
|
version: VERSION
|
||||||
dependencies:
|
dependencies:
|
||||||
- drupal:migrate_drupal
|
- drupal:migrate_drupal
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @file
|
|
||||||
* Install, update and uninstall functions for the migrate drupal multilingual module.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Implements hook_requirements().
|
|
||||||
*
|
|
||||||
* @see migrate_drupal_post_update_uninstall_multilingual()
|
|
||||||
*/
|
|
||||||
function migrate_drupal_multilingual_requirements($phase) {
|
|
||||||
$requirements = [];
|
|
||||||
if ($phase === 'runtime') {
|
|
||||||
$requirements['migrate_drupal_multilingual'] = [
|
|
||||||
'title' => t('Migrate Drupal Multilingual'),
|
|
||||||
'severity' => REQUIREMENT_ERROR,
|
|
||||||
'description' => t('The Migrate Drupal Multilingual module is deprecated and should not be installed.'),
|
|
||||||
];
|
|
||||||
}
|
|
||||||
return $requirements;
|
|
||||||
}
|
|
|
@ -1,21 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @file
|
|
||||||
* Provides a requirement for multilingual content and configuration migrations.
|
|
||||||
*/
|
|
||||||
|
|
||||||
use Drupal\Core\Routing\RouteMatchInterface;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Implements hook_help().
|
|
||||||
*/
|
|
||||||
function migrate_drupal_multilingual_help($route_name, RouteMatchInterface $route_match) {
|
|
||||||
switch ($route_name) {
|
|
||||||
case 'help.page.migrate_drupal_multilingual':
|
|
||||||
$output = '';
|
|
||||||
$output .= '<h3>' . t('About') . '</h3>';
|
|
||||||
$output .= '<p>' . t('The Migrate Drupal Multilingual module is a requirement for migrating translations. It does not provide a user interface. For more information, see the <a href=":migrate_drupal_multilingual">online documentation for the Migrate Drupal Multilingual module</a>.', [':migrate_drupal_multilingual' => 'https://www.drupal.org/node/2959712']) . '</p>';
|
|
||||||
return $output;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -4,8 +4,6 @@ namespace Drupal\Tests\migrate_drupal_ui\Functional;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the upgrade review form without translations.
|
* Tests the upgrade review form without translations.
|
||||||
*
|
|
||||||
* When using this test class, do not enable migrate_drupal_multilingual.
|
|
||||||
*/
|
*/
|
||||||
abstract class NoMultilingualReviewPageTestBase extends MultilingualReviewPageTestBase {
|
abstract class NoMultilingualReviewPageTestBase extends MultilingualReviewPageTestBase {
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,6 @@ class IdConflictTest extends MigrateUpgradeExecuteTestBase {
|
||||||
'migrate_drupal_ui',
|
'migrate_drupal_ui',
|
||||||
'statistics',
|
'statistics',
|
||||||
'telephone',
|
'telephone',
|
||||||
// Required for translation migrations.
|
|
||||||
'migrate_drupal_multilingual',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -9,7 +9,7 @@ use Drupal\Tests\migrate_drupal_ui\Functional\MultilingualReviewPageTestBase;
|
||||||
/**
|
/**
|
||||||
* Tests migrate upgrade review page for Drupal 6.
|
* Tests migrate upgrade review page for Drupal 6.
|
||||||
*
|
*
|
||||||
* Tests with translation modules and migrate_drupal_multilingual enabled.
|
* Tests with translation modules enabled.
|
||||||
*
|
*
|
||||||
* @group migrate_drupal_6
|
* @group migrate_drupal_6
|
||||||
* @group migrate_drupal_ui
|
* @group migrate_drupal_ui
|
||||||
|
|
|
@ -9,8 +9,7 @@ use Drupal\Tests\migrate_drupal_ui\Functional\NoMultilingualReviewPageTestBase;
|
||||||
/**
|
/**
|
||||||
* Tests migrate upgrade review page for Drupal 6 without translations.
|
* Tests migrate upgrade review page for Drupal 6 without translations.
|
||||||
*
|
*
|
||||||
* Tests with the translation modules and migrate_drupal_multilingual module
|
* Tests with the translation modules disabled.
|
||||||
* disabled.
|
|
||||||
*
|
*
|
||||||
* @group migrate_drupal_6
|
* @group migrate_drupal_6
|
||||||
* @group migrate_drupal_ui
|
* @group migrate_drupal_ui
|
||||||
|
|
|
@ -31,8 +31,6 @@ class NodeClassicTest extends MigrateUpgradeExecuteTestBase {
|
||||||
'book',
|
'book',
|
||||||
'forum',
|
'forum',
|
||||||
'statistics',
|
'statistics',
|
||||||
// Required for translation migrations.
|
|
||||||
'migrate_drupal_multilingual',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -24,8 +24,6 @@ class IdConflictTest extends MigrateUpgradeExecuteTestBase {
|
||||||
'migrate_drupal_ui',
|
'migrate_drupal_ui',
|
||||||
'statistics',
|
'statistics',
|
||||||
'telephone',
|
'telephone',
|
||||||
// Required for translation migrations.
|
|
||||||
'migrate_drupal_multilingual',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -9,7 +9,7 @@ use Drupal\Tests\migrate_drupal_ui\Functional\MultilingualReviewPageTestBase;
|
||||||
/**
|
/**
|
||||||
* Tests migrate upgrade review page for Drupal 7.
|
* Tests migrate upgrade review page for Drupal 7.
|
||||||
*
|
*
|
||||||
* Tests with translation modules and migrate_drupal_multilingual enabled.
|
* Tests with translation modules enabled.
|
||||||
*
|
*
|
||||||
* @group migrate_drupal_7
|
* @group migrate_drupal_7
|
||||||
* @group migrate_drupal_ui
|
* @group migrate_drupal_ui
|
||||||
|
|
|
@ -23,8 +23,6 @@ class MigrateNodeCompleteTest extends MigrateNodeTestBase {
|
||||||
'language',
|
'language',
|
||||||
'content_translation',
|
'content_translation',
|
||||||
'menu_ui',
|
'menu_ui',
|
||||||
// Required for translation migrations.
|
|
||||||
'migrate_drupal_multilingual',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -34,8 +34,6 @@ class MigrateNodeCompleteTest extends MigrateDrupal7TestBase {
|
||||||
'language',
|
'language',
|
||||||
'link',
|
'link',
|
||||||
'menu_ui',
|
'menu_ui',
|
||||||
// Required for translation migrations.
|
|
||||||
'migrate_drupal_multilingual',
|
|
||||||
'node',
|
'node',
|
||||||
'taxonomy',
|
'taxonomy',
|
||||||
'telephone',
|
'telephone',
|
||||||
|
|
|
@ -15,7 +15,6 @@ class MigrateUrlAliasTest extends MigrateUrlAliasTestBase {
|
||||||
protected static $modules = [
|
protected static $modules = [
|
||||||
'path_alias',
|
'path_alias',
|
||||||
'content_translation',
|
'content_translation',
|
||||||
'migrate_drupal_multilingual',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,8 +20,6 @@ class MigrateMenuTranslationTest extends MigrateDrupal7TestBase {
|
||||||
'language',
|
'language',
|
||||||
'locale',
|
'locale',
|
||||||
'menu_link_content',
|
'menu_link_content',
|
||||||
// Required for translation migrations.
|
|
||||||
'migrate_drupal_multilingual',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,8 +20,6 @@ class MigrateTermNodeComplete extends MigrateDrupal6TestBase {
|
||||||
'content_translation',
|
'content_translation',
|
||||||
'language',
|
'language',
|
||||||
'menu_ui',
|
'menu_ui',
|
||||||
// A requirement for d6_node_translation.
|
|
||||||
'migrate_drupal_multilingual',
|
|
||||||
'taxonomy',
|
'taxonomy',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue