public EntityRepositoryInterface::loadEntityByUuid($entity_type_id, $uuid)
Loads an entity by UUID.
Note that some entity types may not support UUIDs.
string $entity_type_id: The entity type ID to load from.
string $uuid: The UUID of the entity to load.
\Drupal\Core\Entity\EntityInterface|null The entity object, or NULL if there is no entity with the given UUID.
\Drupal\Core\Entity\EntityStorageException Thrown in case the requested entity type does not support UUIDs.
public function loadEntityByUuid($entity_type_id, $uuid);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityRepositoryInterface.php/function/EntityRepositoryInterface::loadEntityByUuid/8.1.x