Problem/Motivation

Having the Module Installer Factory packaged class

Proposed resolution

Provides developers with a class to perform custom processor for install: in varbase_bootstrap_paragraphs.info.yml file.

Having the varbase_bootstrap_paragraphs.info.yml with the following items

name: "Varbase Bootstrap Paragraphs"
type: module
description: "A suite of Paragraph bundles to be used for Varbase distribution. Made with the Bootstrap framework, based on a fork of Bootstrap Paragraph module (bootstrap_paragraphs)."
core_version_requirement: ^9
package: Varbase
configure: varbase_bootstrap_paragraphs.settings
components:
  - vbp_text_and_image
dependencies:
  - varbase_media:varbase_media
install:
  - text
  - options
  - link
  - ckeditor
  - block
  - advanced_text_formatter
  - field_group
  - maxlength
  - webform
  - viewsreference
  - entity_reference_revisions
  - paragraphs
  - paragraphs_library
  - paragraphs_previewer
  - paragraphs_edit

How to use the 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_bootstrap_paragraphs-9.0.5

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

Comments

Rajab Natshah created an issue. See original summary.

Rajab Natshah’s picture

Title: Switch to use the Module Installer Factory with custom install: for the Varbase Bootstrap Paragraphs module » Switch to use the Module Installer Factory in the Varbase Bootstrap Paragraphs module

  • Rajab Natshah committed 509dcb5 on 9.1.x
    Issue #3272278: Switch to use the Module Installer Factory in the...

  • Rajab Natshah committed 1d8641f on 9.0.x
    Issue #3272278: Switch to use the Module Installer Factory in the...

  • Rajab Natshah committed 3bd58d4 on 9.1.x
    Issue #3272278: Switch to use the Module Installer Factory in the...
Rajab Natshah’s picture

Assigned: Rajab Natshah » Mohammed J. Razem
Issue summary: View changes
Status: Active » Needs review
Issue tags: +varbase-9.0.6, +varbase_bootstrap_paragraphs-9.0.5
Rajab Natshah’s picture

Assigned: Mohammed J. Razem » Unassigned

  • Rajab Natshah committed 894db97 on 9.0.x
    Issue #3272278: Switch to use the Module Installer Factory in the...

  • Rajab Natshah committed ebc4fc4 on 9.1.x
    Issue #3272278: Switch to use the Module Installer Factory in the...
Rajab Natshah’s picture

Status: Needs review » Fixed
Rajab Natshah’s picture

Issue summary: View changes
Rajab Natshah’s picture

Issue summary: View changes
Rajab Natshah’s picture

Issue summary: View changes
Rajab Natshah’s picture

Issue summary: View changes
Rajab Natshah’s picture

✅ Released varbase-9.0.6

Rajab Natshah’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.