Craft\Minimee_RemoteAssetModel::getContents PHP Method

getContents() public method

Get the contents of the remote asset.
public getContents ( ) : String
return String
    public function getContents()
    {
        if ($this->_contents === null) {
            $response = $this->_sendClientRequest();
            if ($response->isSuccessful()) {
                $this->_contents = $response->getBody(true);
            } else {
                throw new Exception('Minimee could not get remote asset: ' . $this->filenameUrl);
            }
        }
        return $this->_contents;
    }