Problem/Motivation
Having the Module Installer Factory packaged class
Proposed resolution
Provides developers with a class to perform custom processor for install: for example in module_name.info.yml file.
Let us have the module_name.info.yml with the following items for example
name: "Module Name"
description: "Module description."
type: module
core_version_requirement: ^9
dependencies:
- drupal:node
- drupal:editor
- drupal:ckeditor
- drupal:filter
install:
- extlink
- linkit
- anchor_link
How to use Module Installer Factory Class
Require the package in your root composer.json file
"vardot/module-installer-factory": "~1.0"
OR require the package in your project with the following command
$ composer require vardot/module-installer-factory:~1.0
Add Needed Namespace
Add the following name space at in custom modules or custom installation profiles.
use Vardot\Installer\ModuleInstallerFactory;
Use the following methods in your custom install events
ModuleInstallerFactory::installList('mdoule_name', 'install', TRUE);
Follow with more examples for other methods and how to use them
https://github.com/Vardot/module-installer-factory/blob/1.0.x/README.md
Remaining tasks
- ✅ File an issue about this project
- ✅ Addition/Change/Update/Fix to this project
- ✅ Testing to ensure no regression
- ✅ Automated unit/functional testing coverage
- ✅ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ✅ Accessibility and Readability
- ✅ Code review from 1 Varbase core team member
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Update Release Notes and Update Helper on new feature change/addition
- ✅ Release varbase-9.0.6, varbase_core-9.0.20
Varbase update type
- ✅ No Update
- ➖ Optional Update
- ➖ Forced Update
- ➖ Forced Update if Unchanged
User interface changes
- N/A
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- Issue #3270834 by Abdullah Yassin, Rajab Natshah: Switched to use the Module Installer Factory with custom
install:for the Varbase Core module
Issue fork varbase_core-3270834
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rajab natshahComment #3
rajab natshahComment #6
Abdullah Yassin commentedComment #12
rajab natshahComment #15
rajab natshahComment #16
rajab natshahComment #17
rajab natshahComment #18
rajab natshahComment #19
rajab natshahComment #22
rajab natshahComment #23
rajab natshahComment #24
rajab natshahComment #26
rajab natshah✅ Released varbase_core-9.0.20
Comment #27
rajab natshah✅ Released varbase-9.0.6
Comment #28
rajab natshah