Move asset_lookup and term_lookup plugins to farm_migrate.

This commit is contained in:
Michael Stenta 2023-10-11 10:24:14 -04:00
parent 2336e172a3
commit c9ed7d316d
6 changed files with 20 additions and 3 deletions

View File

@ -0,0 +1,15 @@
<?php
/**
* @file
* Post update hooks for the farm_import_csv module.
*/
/**
* Install farm_migrate as a dependency of farm_import_csv.
*/
function farm_import_csv_post_update_install_farm_migrate(&$sandbox) {
if (!\Drupal::service('module_handler')->moduleExists('farm_migrate')) {
\Drupal::service('module_installer')->install(['farm_migrate']);
}
}

View File

@ -12,6 +12,7 @@ dependencies:
- farm:farm_location
- farm:farm_log_asset
- farm:farm_log_quantity
- farm:farm_migrate
- farm:farm_parent
- farm:farm_quantity_standard
- farm:quantity

View File

@ -38,6 +38,7 @@ class CsvImportTestBase extends MigrateTestBase {
'farm_import_csv',
'farm_import_csv_test',
'farm_log_quantity',
'farm_migrate',
'farm_quantity_standard',
'file',
'filter',

View File

@ -1,5 +1,5 @@
name: farmOS Migrate
description: farmOS 1.x to 2.x migration tool.
description: farmOS Migrate API plugins.
type: module
package: farmOS
core_version_requirement: ^9

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\farm_import_csv\Plugin\migrate\process;
namespace Drupal\farm_migrate\Plugin\migrate\process;
use Drupal\Component\Uuid\Uuid;
use Drupal\migrate\MigrateExecutableInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace Drupal\farm_import_csv\Plugin\migrate\process;
namespace Drupal\farm_migrate\Plugin\migrate\process;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\MigrateSkipRowException;