Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Remove deprecated function entity_load_by_uuid() and its references.
In drupal/core/includes/entity.inc
/**
* Loads an entity by UUID.
*
* Note that some entity types may not support UUIDs.
*
* @param string $entity_type_id
* The entity type to load; e.g., 'node' or 'user'.
* @param string $uuid
* The UUID of the entity to load.
*
* @return EntityInterface|FALSE
* The entity object, or FALSE if there is no entity with the given UUID.
*
* @throws \Drupal\Core\Entity\EntityStorageException
* Thrown in case the requested entity type does not support UUIDs.
*
* @see \Drupal\Core\Entity\EntityManagerInterface
*
* @deprecated Use \Drupal::entityManager()->loadEntityByUuid();
*/
function entity_load_by_uuid($entity_type_id, $uuid) {
return \Drupal::entityManager()->loadEntityByUuid($entity_type_id, $uuid);
}
Comment | File | Size | Author |
---|---|---|---|
#1 | drupal-remove-deprecated-function-entity_load_by_uuid-2452499-1.patch | 8.21 KB | arpitr |
Comments
Comment #1
arpitr CreditAttribution: arpitr commentedAdded patch to remove function definition and its references.
Comment #2
arpitr CreditAttribution: arpitr commentedComment #3
lhangea CreditAttribution: lhangea commentedPatch applies cleanly and a simple search after 'entity_load_by_uuid' string in core yields no results, so I guess the patch does what it is supposed to.
Comment #4
webchickLooks like https://www.drupal.org/node/1721572 covers this change. Removing deprecated code is explicitly allowed in beta.
Committed and pushed to 8.0.x. Thanks!