Add soft dependency on field_ui library the Drupal way.

Created on 25 April 2025, 3 months ago

Problem/Motivation

At the moment libraries are not discoverable if the extension that defines them is not enabled.
Additionally, there is no soft dependency/optional mechanism for libraries as far as I know.

If you want to add a library as a dependency, you must also add the extension that defines that library as a dependency, or dynamically set the dependency conditionally if the extension is enabled.

Steps to reproduce

TBD

Proposed resolution

Move the "soft dependency" from the field_group.libraries.yml to a hook_library_info_alter implementation.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

4.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States trackleft2 Tucson, AZ πŸ‡ΊπŸ‡Έ

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