public function getFormatWebPath($format = null)
    {
        if (!$format = $format ?: $this->defaultFormat) {
            return $this->getWebPath();
        }

        return ($formattedImage = $this->getFormattedImage($format))
            ? $formattedImage->getWebPath()
            : $this->getWebPath()
        ;
    }
public function getFormatWebPath($format = null)
    {
        if (!$format = $format ?: $this->defaultFormat) {
            return $this->getWebPath();
        }

        return ($formattedImage = $this->getFormattedImage($format))
            ? $formattedImage->getWebPath()
            : $this->getWebPath()
        ;
    }
public function getFormatWebPath ( $ format = null ) { if ( ! $ format = $ format ? : $ this -> defaultFormat ) { return $ this -> getWebPath ( ) ; } return ( $ formattedImage = $ this -> getFormattedImage ( $ format ) ) ? $ formattedImage -> getWebPath ( ) : $ this -> getWebPath ( ) ; }
Returns requested format web path, or original one, if format doesnt exists.

@param string|FormatInterface $format

@return string
Returns requested format web path or original one if format doesnt exists .