protected function getLink(\core_kernel_classes_Resource $resource)
    {
        $instance = $resource->getUniquePropertyValue($this->getProperty(self::PROPERTY_LINK));
        return $instance instanceof \core_kernel_classes_Resource ? $instance->getUri() : (string)$instance;
    }
protected function getLink(\core_kernel_classes_Resource $resource)
    {
        $instance = $resource->getUniquePropertyValue($this->getProperty(self::PROPERTY_LINK));
        return $instance instanceof \core_kernel_classes_Resource ? $instance->getUri() : (string)$instance;
    }
protected function getLink ( \ core_kernel_classes_Resource $ resource ) { $ instance = $ resource -> getUniquePropertyValue ( $ this -> getProperty ( self :: PROPERTY_LINK ) ) ; return $ instance instanceof \ core_kernel_classes_Resource ? $ instance -> getUri ( ) : ( string ) $ instance ; }
Returns the link of a media resource

@param \core_kernel_classes_Resource $resource
@return string
Returns the link of a media resource