public function getPublicPersistentResourceUri(PersistentResource $resource)
    {
        $this->initialize();

        if (!isset($this->collections[$resource->getCollectionName()])) {
            return false;
        }
        /** @var TargetInterface $target */
        $target = $this->collections[$resource->getCollectionName()]->getTarget();

        return $target->getPublicPersistentResourceUri($resource);
    }
public function getPublicPersistentResourceUri(PersistentResource $resource)
    {
        $this->initialize();

        if (!isset($this->collections[$resource->getCollectionName()])) {
            return false;
        }
        /** @var TargetInterface $target */
        $target = $this->collections[$resource->getCollectionName()]->getTarget();

        return $target->getPublicPersistentResourceUri($resource);
    }
public function getPublicPersistentResourceUri ( PersistentResource $ resource ) { $ this -> initialize ( ) ; if ( ! isset ( $ this -> collections [ $ resource -> getCollectionName ( ) ] ) ) { return false ; } /** @var TargetInterface $target */ $ target = $ this -> collections [ $ resource -> getCollectionName ( ) ] -> getTarget ( ) ; return $ target -> getPublicPersistentResourceUri ( $ resource ) ; }
Returns the web accessible URI for the given resource object

@param PersistentResource $resource The resource object
@return string|boolean A URI as a string or false if the collection of the resource is not found
@api
Returns the web accessible URI for the given resource object