Replace plus with dot in component config entity IDs

Created on 11 October 2024, 2 months ago

Overview

While working on 📌 [later phase] [PP-2] Prepare for multiple component types: prefix Component config entity IDs with `sdc` Postponed the use of + to separate parts of the config entity ID is still jarring.

Core uses dots freely, for example field.field.node.page.body or core.entity_form_display.media.audio.media_library and ConfigEntityStorage says

 * - ID: A string denoting the entity ID within the entity type namespace; e.g.,
 *   'article'. Entity IDs may contain dots/periods. The entire remaining string
 *   after the config_prefix in a config name forms the entity ID. Additional or
 *   custom suffixes are not possible.

When this was first proposed in 📌 "Developer-created components": mark which SDCs should be exposed in XB Fixed the concern was that SDC IDs, which form part of the config entity name, can also contain dots - but I don't think this matters. For SDCs the format is now sdc+provider+name but with dots that is still fine: sdc.provider.my.dotted.sdc - we can just explode on the first two dots only to extract the name.

Proposed resolution

Replace + with . in component config entity IDs.

User interface changes

None

📌 Task
Status

Active

Version

0.0

Component

Config management

Created by

🇬🇧United Kingdom longwave UK

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