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',
|
||||
'language',
|
||||
'menu_ui',
|
||||
// A requirement for d6_node_translation.
|
||||
'migrate_drupal_multilingual',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
@ -27,8 +27,6 @@ class FollowUpMigrationsTest extends MigrateDrupal7TestBase {
|
|||
'language',
|
||||
'link',
|
||||
'menu_ui',
|
||||
// A requirement for translation migrations.
|
||||
'migrate_drupal_multilingual',
|
||||
'node',
|
||||
'taxonomy',
|
||||
'telephone',
|
||||
|
|
|
@ -2,7 +2,8 @@ name: 'Migrate Drupal Multilingual'
|
|||
type: module
|
||||
description: 'Provides a requirement for multilingual migrations.'
|
||||
package: 'Core (Experimental)'
|
||||
lifecycle: experimental
|
||||
lifecycle: obsolete
|
||||
lifecycle_link: https://www.drupal.org/node/3080264
|
||||
version: VERSION
|
||||
dependencies:
|
||||
- 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.
|
||||
*
|
||||
* When using this test class, do not enable migrate_drupal_multilingual.
|
||||
*/
|
||||
abstract class NoMultilingualReviewPageTestBase extends MultilingualReviewPageTestBase {
|
||||
|
||||
|
|
|
@ -24,8 +24,6 @@ class IdConflictTest extends MigrateUpgradeExecuteTestBase {
|
|||
'migrate_drupal_ui',
|
||||
'statistics',
|
||||
'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 with translation modules and migrate_drupal_multilingual enabled.
|
||||
* Tests with translation modules enabled.
|
||||
*
|
||||
* @group migrate_drupal_6
|
||||
* @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 with the translation modules and migrate_drupal_multilingual module
|
||||
* disabled.
|
||||
* Tests with the translation modules disabled.
|
||||
*
|
||||
* @group migrate_drupal_6
|
||||
* @group migrate_drupal_ui
|
||||
|
|
|
@ -31,8 +31,6 @@ class NodeClassicTest extends MigrateUpgradeExecuteTestBase {
|
|||
'book',
|
||||
'forum',
|
||||
'statistics',
|
||||
// Required for translation migrations.
|
||||
'migrate_drupal_multilingual',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
@ -24,8 +24,6 @@ class IdConflictTest extends MigrateUpgradeExecuteTestBase {
|
|||
'migrate_drupal_ui',
|
||||
'statistics',
|
||||
'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 with translation modules and migrate_drupal_multilingual enabled.
|
||||
* Tests with translation modules enabled.
|
||||
*
|
||||
* @group migrate_drupal_7
|
||||
* @group migrate_drupal_ui
|
||||
|
|
|
@ -23,8 +23,6 @@ class MigrateNodeCompleteTest extends MigrateNodeTestBase {
|
|||
'language',
|
||||
'content_translation',
|
||||
'menu_ui',
|
||||
// Required for translation migrations.
|
||||
'migrate_drupal_multilingual',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
@ -34,8 +34,6 @@ class MigrateNodeCompleteTest extends MigrateDrupal7TestBase {
|
|||
'language',
|
||||
'link',
|
||||
'menu_ui',
|
||||
// Required for translation migrations.
|
||||
'migrate_drupal_multilingual',
|
||||
'node',
|
||||
'taxonomy',
|
||||
'telephone',
|
||||
|
|
|
@ -15,7 +15,6 @@ class MigrateUrlAliasTest extends MigrateUrlAliasTestBase {
|
|||
protected static $modules = [
|
||||
'path_alias',
|
||||
'content_translation',
|
||||
'migrate_drupal_multilingual',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,8 +20,6 @@ class MigrateMenuTranslationTest extends MigrateDrupal7TestBase {
|
|||
'language',
|
||||
'locale',
|
||||
'menu_link_content',
|
||||
// Required for translation migrations.
|
||||
'migrate_drupal_multilingual',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,8 +20,6 @@ class MigrateTermNodeComplete extends MigrateDrupal6TestBase {
|
|||
'content_translation',
|
||||
'language',
|
||||
'menu_ui',
|
||||
// A requirement for d6_node_translation.
|
||||
'migrate_drupal_multilingual',
|
||||
'taxonomy',
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue