Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #0
This is a follow-up to #2198377: Enforce UUID key name in configuration entities
Problem/Motivation
The committed patch in #2198377: Enforce UUID key name in configuration entities forces consuming code to check whether a given entity type is config or content entity type in order to figure out the UUID key. Post-commit it was discussed there whether it would not be possible to make EntityTypeInterface::getKey('uuid') return 'uuid' in all cases for config entities directly. This would improve DX.
Proposed resolution
Make ConfigEntityType::getKey('uuid') return 'uuid' in all cases.
Remaining tasks
User interface changes
-
Comments
Comment #1
damiankloip CreditAttribution: damiankloip commentedThis is already happening in #2004336: Default UUID key in ConfigEntityType.