Commit 6de23686 authored by catch's avatar catch

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

Issue #2625138 by almaudoh, Oleksiy: EntityRepository::loadEntityByUuid() implementation does not match EntityRepositoryInterface::loadEntityByUuid() @return documentation
parent 7a4396a4
......@@ -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;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment