From 9006467a9fac7238930065f73749e13f4c0a819c Mon Sep 17 00:00:00 2001 From: Chintan Desai Date: Tue, 15 Feb 2022 18:39:51 +0000 Subject: [PATCH] Adds basic module files. --- cdesai_migrate.info.yml | 14 ++++++++++++++ cdesai_migrate.install | 23 +++++++++++++++++++++++ cdesai_migrate.permissions.yml | 3 +++ composer.json | 22 ++++++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 cdesai_migrate.info.yml create mode 100644 cdesai_migrate.install create mode 100644 cdesai_migrate.permissions.yml create mode 100644 composer.json diff --git a/cdesai_migrate.info.yml b/cdesai_migrate.info.yml new file mode 100644 index 0000000..dcee33b --- /dev/null +++ b/cdesai_migrate.info.yml @@ -0,0 +1,14 @@ +type: module +name: Demo Migration Module +description: 'Migrate content from a CSV file. DO NOT INSTALL' +package: Migration +core: 8.x +core_version_requirement: ^8 || ^9 +dependencies: + - migrate + - migrate_plus + - migrate_tools + - migrate_source_csv + +# Hides the module from the Admin UI. +hidden: true diff --git a/cdesai_migrate.install b/cdesai_migrate.install new file mode 100644 index 0000000..067864a --- /dev/null +++ b/cdesai_migrate.install @@ -0,0 +1,23 @@ + t('Demo Migration module is not ready for the installation. This module heavily redacted version of a module used in a project. Do not install.'), + 'severity' => REQUIREMENT_ERROR, + ]; + } + + return $requirements; +} diff --git a/cdesai_migrate.permissions.yml b/cdesai_migrate.permissions.yml new file mode 100644 index 0000000..2b0e31e --- /dev/null +++ b/cdesai_migrate.permissions.yml @@ -0,0 +1,3 @@ +administer demo migrate: + title: 'Administer Demo Migrate' + restrict access: true diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..353e562 --- /dev/null +++ b/composer.json @@ -0,0 +1,22 @@ +{ + "name": "drupal/cdesai_migrate", + "description": "Demo of custom migration plugins.", + "type": "drupal-module", + "homepage": "https://wezbyte.com", + "keywords": ["Drupal", "Chintan", "Desai", "Migration"], + "minimum-stability": "dev", + "license": "GPL-2.0-or-later", + "authors": [ + { + "name": "Chintan Desai", + "email": "chintan@wezbyte.com" + } + ], + "require": { + "drupal/core": "^8.9 || ^9.3", + "drupal/migrate_file": "^2.0", + "drupal/migrate_plus": "^5.1", + "drupal/migrate_source_csv": "^3.4", + "drupal/migrate_tools": "^5.0" + } +}