public function defaultVariantUrl($variant)
    {
        $defaultVariant = $this->getDefaultUrlVariantName();

        return $this->getConfigValue(
            "urls.{$variant}",
            $variant === $defaultVariant ? $this->getDefaultUrlWithoutVariantFallback() : null
        );
    }
public function defaultVariantUrl($variant)
    {
        $defaultVariant = $this->getDefaultUrlVariantName();

        return $this->getConfigValue(
            "urls.{$variant}",
            $variant === $defaultVariant ? $this->getDefaultUrlWithoutVariantFallback() : null
        );
    }
public function defaultVariantUrl ( $ variant ) { $ defaultVariant = $ this -> getDefaultUrlVariantName ( ) ; return $ this -> getConfigValue ( "urls.{$variant}" , $ variant === $ defaultVariant ? $ this -> getDefaultUrlWithoutVariantFallback ( ) : null ) ; }
Returns the default URL for a variant to use when no attachment is stored.

@param string $variant
@return string|null
Returns the default URL for a variant to use when no attachment is stored .