Jackalope\ObjectManager::getCachedNodeByUuid PHP Method

getCachedNodeByUuid() public method

As getCachedNode but looking up the node by uuid. Note that this will never return you a removed node because the uuid is removed from the map.
See also: getCachedNode
public getCachedNodeByUuid ( $uuid, string $class = 'Node' ) : PHPCR\NodeInterface
$uuid
$class string
return PHPCR\NodeInterface or null
    public function getCachedNodeByUuid($uuid, $class = 'Node')
    {
        if (array_key_exists($uuid, $this->objectsByUuid)) {
            return $this->getCachedNode($this->objectsByUuid[$uuid], $class);
        }
        return null;
    }