From 99a78afbec5dcf8a19516a8821d138d774796947 Mon Sep 17 00:00:00 2001 From: quietone <quietone@2572884.no-reply.drupal.org> Date: Wed, 18 Dec 2024 20:13:06 +1300 Subject: [PATCH] Issue #3467540 by tstoeckler, prem suthar, smustgrave, catch: Update EntityTypeInterface::getKeys() docs for string IDs --- core/lib/Drupal/Core/Entity/EntityTypeInterface.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/core/lib/Drupal/Core/Entity/EntityTypeInterface.php b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php index 539158ceb856..6973d81e44ab 100644 --- a/core/lib/Drupal/Core/Entity/EntityTypeInterface.php +++ b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php @@ -72,15 +72,14 @@ public function getOriginalClass(); * Gets an array of entity keys. * * @return array - * An array describing how the Field API can extract certain information - * from objects of this entity type: + * An array describing how information can be extracted from entities of + * this entity type: * - id: The name of the property that contains the primary ID of the - * entity. Every entity object passed to the Field API must have this - * property and its value must be numeric. + * entity. Entities that can be saved to storage must have this. * - revision: (optional) The name of the property that contains the - * revision ID of the entity. The Field API assumes that all revision IDs - * are unique across all entities of a type. If this entry is omitted - * the entities of this type are not revisionable. + * revision ID of the entity. It is assumed that all revision IDs are + * unique across all entities of a type. If this entry is omitted the + * entities of this type are not revisionable. * - bundle: (optional) The name of the property that contains the bundle * name for the entity. The bundle name defines which set of fields are * attached to the entity (e.g. what nodes call "content type"). This -- GitLab