Active
Project:
Drupal core
Version:
main
Component:
entity system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2026 at 00:01 UTC
Updated:
17 Aug 2026 at 00:01 UTC
Jump to comment: Most recent
Follow-up from #3616553: replace usage of spl_object_hash() with spl_object_id().
public static function getTemporaryTableMappingPrefix(EntityTypeInterface $entity_type, array $field_storage_definitions, $first_prefix_part = 'tmp_') {
// Construct a unique prefix based on the contents of the entity type and
// field storage definitions.
This relies on spl_object_id() which should be unique for a request, but isn't necessarily 1-1 with the contents of the objects. Do we need to actually hash the objects? Or is there something else we can use for the key? If the logic is fine, we should update the comment to explain why spl_object_id() is chosen.
Comments