Craft\Minimee_LocalAssetModel::getContents PHP Method

getContents() public method

Set our location based on contents of filename
public getContents ( ) : String
return String
    public function getContents()
    {
        if ($this->_contents === null) {
            $this->_contents = IOHelper::getFileContents($this->filenamePath);
            if ($this->_contents === false) {
                throw new Exception('Minimee could not get local asset: ' . $this->filenamePath);
            }
        }
        return $this->_contents;
    }