iqual/icms_core_logic

ICMS Core Logic - Provides deployment hooks and update functions for ICMS core functionality and propagates changes to child projects.

Installs: 0

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:drupal-module

pkg:composer/iqual/icms_core_logic

1.4.0 2025-11-19 08:03 UTC

This package is auto-updated.

Last update: 2025-11-19 08:05:43 UTC


README

This module contains update hooks and cross-bundle logic for ICMS core functionality.

Purpose

  • Handle structural changes via hook_update_N()
  • Provide shared functionality needed across multiple bundles

Hook Types

Update Hooks

Run before config import. Use for schema changes, complex migrations.

function icms_core_logic_update_9001() {
  \Drupal::service('module_installer')->install(['new_module']);
  return new TranslatableMarkup('Enabled new_module.');
}

Start numbering from 9001.

Deployment Workflow

Client projects update via:

composer update iqual/icms_core
drush updb          # Runs update hooks
drush cex           # Export config
drush cr            # Clear cache

Bundle Logic Modules

Each bundle has a paired logic module (e.g., icms_bundle_news_logic) following the same pattern.

Client Projects

Client projects should create feature-specific modules (e.g., clientname_sso, clientname_newsletter) rather than a single *_logic module. Use update numbers below 9000 for client-specific hooks.