eZ\Publish\Core\REST\Common\FieldTypeProcessor\BinaryProcessor::generateUrl PHP Method

generateUrl() protected method

Generates a URL for $path.
protected generateUrl ( string $path ) : string
$path string absolute url
return string
    protected function generateUrl($path)
    {
        $url = $path;
        if ($this->hostPrefix) {
            // url should start with a /
            $url = $this->hostPrefix . $url;
        }
        return $url;
    }