Webiny\Component\Storage\Storage::getURL PHP Method

getURL() public method

public getURL ( $key )
    public function getURL($key)
    {
        if (!$this->isDirectory($key)) {
            return $this->driver->getURL($key);
        }
        return false;
    }

Usage Example

Example #1
0
 /**
  * @inheritdoc
  */
 public function getUrl()
 {
     if ($this->url === null) {
         $this->url = $this->storage->getURL($this->key);
     }
     return $this->url;
 }