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);
}
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arpitr’s picture

Added patch to remove function definition and its references.

arpitr’s picture

Assigned: arpitr » Unassigned
Status: Active » Needs review
lhangea’s picture

Status: Needs review » Reviewed & tested by the community

Patch 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.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Looks 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!

  • webchick committed 5cbaf8c on 8.0.x
    Issue #2452499 by arpitr: Remove deprecated function definition for...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.