Skip to content
Snippets Groups Projects
Commit 6de23686 authored by catch's avatar catch
Browse files

Issue #2625138 by almaudoh, Oleksiy: EntityRepository::loadEntityByUuid()...

Issue #2625138 by almaudoh, Oleksiy: EntityRepository::loadEntityByUuid() implementation does not match EntityRepositoryInterface::loadEntityByUuid() @return documentation
parent 7a4396a4
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ public function loadEntityByUuid($entity_type_id, $uuid) {
$entities = $this->entityTypeManager->getStorage($entity_type_id)->loadByProperties([$uuid_key => $uuid]);
return reset($entities);
return ($entities) ? reset($entities) : NULL;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment