Pantheon\Terminus\Commands\ArtCommand::retrieveArt PHP Method

retrieveArt() protected method

Retrieve the contents of an art file.
protected retrieveArt ( $name ) : string
$name
return string
    protected function retrieveArt($name)
    {
        if (!file_exists($this->filename)) {
            throw new TerminusNotFoundException("There is no source for the requested {name} artwork.", ['name' => $name]);
        }
        return base64_decode(file_get_contents($this->filename));
    }