Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By Berdir on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Description:
UUID support has been added to entities. By specifying an uuid entity key in entity annotation, the default entity controller generates a new UUID automatically. This allows to uniquely identify an entity across multiple sites.
An entity can be loaded by the UUID with the function entity_load_by_uuid(). The EntityInterface::uuid() method can be used to get the UUID of an entity.
Impacts:
Module developers
Comments
Wrong link
First link should presumably point to the D8 version of hook_entity_info, but there is no real info there on how this should be used.
Should be annotation, I'd say
hook_entity_info()
doesn't really seem to be used anymore, or at least not as the main method of entity type definition. Instead, this change record should probably be referenced, or some of its content inserted here. It already contains theuuid
field.