Adds basic module files.

This commit is contained in:
2022-02-15 18:39:51 +00:00
parent 62860ffad5
commit cdd10c02f5
4 changed files with 62 additions and 0 deletions
+14
View File
@@ -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
+23
View File
@@ -0,0 +1,23 @@
<?php
/**
* @file
* Install and update functions for the Demo Migrate module.
*/
/**
* Implements hook_requirements().
*/
function cdesai_migrate_requirements($phase) {
$requirements = [];
if ($phase == 'install') {
// Abort installation of this module since it is not ready.
$requirements['cdesai_migrate_not_ready'] = [
'description' => 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;
}
+3
View File
@@ -0,0 +1,3 @@
administer demo migrate:
title: 'Administer Demo Migrate'
restrict access: true
+22
View File
@@ -0,0 +1,22 @@
{
"name": "drupal/cdesai_migrate",
"description": "Demo of custom text formatters based on Unleashed Technologies challenge.",
"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"
}
}