Webiny\Component\Storage\Driver\AmazonS3\S3StorageDriver::getURL PHP Method

getURL() public method

public getURL ( $key )
    public function getURL($key)
    {
        if ($this->cdnDomain) {
            return $this->cdnDomain . '/' . $key;
        }
        if (!$this->arr($this->recentFiles)->keyExists($key)) {
            $this->recentFiles[$key]['ObjectURL'] = $this->s3Client->getObjectUrl($this->bucket, $key);
        }
        return $this->recentFiles[$key]['ObjectURL'];
    }