field_image field instance should be optional

Created on 6 March 2025, about 2 months ago

Problem/Motivation

When installing Drupal with an install profile other than the standard install profile from Drupal core the image media type (media.type.image) might not be present. As the field_image field instance for the content_template entity type (field.field.content_template.content_template.field_image) depends on this configuration it cannot be in the config/install folder as that will lead to an unmet dependency exception when the Content Templates module is enabled.

Steps to reproduce

- Install Drupal with an install profile that does not install the media.type.image configuration object.
- Try to enabled the Content Templates module.

Proposed resolution

- Move the field.field.content_templates.content_templates.field_image configuration file to config/optional.

Remaining tasks

- Create MR
- Review MR
- Merge MR

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇳🇱Netherlands ricovandevin

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