public function getNodeByPathOrIdentifier($pathOrId)
    {
        if (true === UUIDHelper::isUUID($pathOrId)) {
            return $this->getNodeByIdentifier($pathOrId);
        }

        $pathOrId = $this->getAbsPath($pathOrId);

        return $this->getNode($pathOrId);
    }
public function getNodeByPathOrIdentifier($pathOrId)
    {
        if (true === UUIDHelper::isUUID($pathOrId)) {
            return $this->getNodeByIdentifier($pathOrId);
        }

        $pathOrId = $this->getAbsPath($pathOrId);

        return $this->getNode($pathOrId);
    }
public function getNodeByPathOrIdentifier ( $ pathOrId ) { if ( true === UUIDHelper :: isUUID ( $ pathOrId ) ) { return $ this -> getNodeByIdentifier ( $ pathOrId ) ; } $ pathOrId = $ this -> getAbsPath ( $ pathOrId ) ; return $ this -> getNode ( $ pathOrId ) ; }
If the given parameter looks like a UUID retrieve
by Identifier, otherwise by path.

@param string $pathOrId

@throws PathNotFoundException if no accessible node is found at the specified path.
@throws ItemNotFoundException if no node with the specified
identifier exists or if this Session does not have read access to
the node with the specified identifier.

@return NodeInterface
If the given parameter looks like a UUID retrieve by Identifier otherwise by path .