Config entities that have IDs which are built from other properties should update those properties when the ID changes

Created on 23 October 2024, 6 months ago

Problem/Motivation

✨ Add config action to copy entity displays Active extended the cloneAs config action to allow stuff like this:

core.entity_view_display.node.page.default:
  cloneAs: node.blog.full

In that issue, we modified EntityDisplayBase::set() so that, if the entity's ID is changed, the other properties which are derived from that ID (or, rather, used to build the ID) are updated too.

The problem is, we only did that for entity displays. There are other config entities that follow a similar pattern, where the ID relates to other properties in a meaningful way -- fields and their storages leap to mind. We should maybe generalize the logic of entity view displays so that it works for all config entities that are structured like that.

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component

configuration entity system

Created by

πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

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

Comments & Activities

Production build 0.71.5 2024