Sulu\Bundle\MediaBundle\Media\ImageConverter\ImagineImageConverter::getFormat PHP Method

getFormat() private method

Return the options for the given format.
private getFormat ( $formatKey ) : array
$formatKey
return array
    private function getFormat($formatKey)
    {
        if (!isset($this->formats[$formatKey])) {
            throw new ImageProxyInvalidImageFormat('Format was not found');
        }
        return $this->formats[$formatKey];
    }