Skip to content
Snippets Groups Projects
Unverified Commit e68df237 authored by Lucas Hedding's avatar Lucas Hedding Committed by Lucas Hedding
Browse files

Issue #3265865 by heddn: Support Drupal 10

parent 89b5526f
Branches
Tags
No related merge requests found
......@@ -22,10 +22,10 @@
},
"require": {
"php": ">=7.1",
"drupal/core": "^8.7 || ^9.0",
"drupal/core": ">=9.1",
"league/csv": "^9.1"
},
"require-dev": {
"drupal/migrate_plus": "5.x-dev"
"drupal/migrate_plus": ">=5.0"
}
}
......@@ -2,8 +2,7 @@ type: module
name: Migrate Source CSV
description: 'CSV source migration.'
package: Migration
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: '>=9.1'
dependencies:
- drupal:migrate
test_dependencies:
......
name: Source plugin using yield
type: module
package: Testing
core: 8.x
core_version_requirement: ^8 || ^9
dependencies:
- drupal:migrate
name: Migrate Source CSV Test
type: module
package: Testing
core: 8.x
core_version_requirement: ^8 || ^9
dependencies:
- drupal:migrate
- migrate_source_csv:migrate_source_csv
......
......@@ -9,5 +9,6 @@
* Implements hook_migration_plugins_alter().
*/
function migrate_source_csv_test_migration_plugins_alter(&$definitions) {
$definitions['migrate_csv_test']['source']['path'] = drupal_get_path('module', 'migrate_source_csv_test') . $definitions['migrate_csv_test']['source']['path'];
$path = \Drupal::service('extension.list.module')->getPath('migrate_source_csv_test');
$definitions['migrate_csv_test']['source']['path'] = $path . $definitions['migrate_csv_test']['source']['path'];
}
......@@ -15,7 +15,7 @@ class CSVTest extends MigrateTestBase {
/**
* {@inheritdoc}
*/
public static $modules = [
protected static $modules = [
'system',
'field',
'user',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment