Unable to enable the module without Display Suite Extras - Add a composer.json to manage dependencies

Created on 2 May 2025, 16 days ago

Hi,

Problem/Motivation

When integrating this module into a project that does not yet include Display Suite, it is currently not possible to enable it directly after download. This is because it depends on ds_extras (a submodule of Display Suite), which is not installed by default.

While it makes sense to expect Display Suite as part of the setup to fully leverage the module, the lack of explicit dependency management via Composer can create friction, especially in projects where Display Suite hasn't been added yet.

Proposed resolution

Add a composer.json file to the module, declaring the dependencies already listed in the .info.yml file:

  • UI Patterns (^2.0)
  • Display Suite (^3.29)

Benefits

  1. Simplifies installation for projects that don’t yet include Display Suite
  2. Supports better continuous integration by ensuring dependency consistency (UI Patterns and Display Suite)
  3. Improves version compatibility tracking through Composer

Context

  • Drupal: 10.x
  • UI Patterns: 2.0.3
  • Display Suite: 3.29
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇷🇪Réunion Martygraphie Saint-Denis (Réunion)

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024