Do not throw error on missing component

Created on 29 January 2026, 3 days ago

Problem/Motivation

Currently if a component is removed or renamed, we throw an error.
In Display builder context this can cause a fatal error, it would be better for builder experience to follow Drupal error message display setting and inform or fail silently with a log.

Steps to reproduce

In Display builder add a component from a module or theme.
Remove or rename this component.

Proposed resolution

Intercept and replace with a status message and a log.
Display status message only if error level is set higher than 'none'.

Remaining tasks

User interface changes

None

API changes

None

Data model changes

None

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France mogtofu33

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024