src/TemplateHelper.php
public function generateRokkaUrl(
      $hash,
      $stack,
      $format = 'jpg',
      $seo = null,
      $seoLanguage = 'de'
    ) {
        if (null === $format) {
            $format = 'jpg';
        }
        $slug = null;
        if (!empty($seo) && null !== $seo) {
            if (null === $seoLanguage) {
                $seoLanguage = 'de';
            }
            $slug = self::slugify($seo, $seoLanguage);
        }
        $path = UriHelper::composeUri(['stack' => $stack, 'hash' => $hash, 'format' => $format, 'filename' => $slug]);

        return $this->rokkaDomain.$path->getPath();
    }
public function generateRokkaUrl(
      $hash,
      $stack,
      $format = 'jpg',
      $seo = null,
      $seoLanguage = 'de'
    ) {
        if (null === $format) {
            $format = 'jpg';
        }
        $slug = null;
        if (!empty($seo) && null !== $seo) {
            if (null === $seoLanguage) {
                $seoLanguage = 'de';
            }
            $slug = self::slugify($seo, $seoLanguage);
        }
        $path = UriHelper::composeUri(['stack' => $stack, 'hash' => $hash, 'format' => $format, 'filename' => $slug]);

        return $this->rokkaDomain.$path->getPath();
    }
public function generateRokkaUrl ( $ hash , $ stack , $ format = 'jpg' , $ seo = null , $ seoLanguage = 'de' ) { if ( null === $ format ) { $ format = 'jpg' ; } $ slug = null ; if ( ! empty ( $ seo ) && null !== $ seo ) { if ( null === $ seoLanguage ) { $ seoLanguage = 'de' ; } $ slug = self :: slugify ( $ seo , $ seoLanguage ) ; } $ path = UriHelper :: composeUri ( [ 'stack' => $ stack , 'hash' => $ hash , 'format' => $ format , 'filename' => $ slug ] ) ; return $ this -> rokkaDomain . $ path -> getPath ( ) ; }
Gets the rokka URL for an image hash and stack with optional seo filename in the URL.
Doesn't upload it, if we don't have a local hash for it. Use getStackUrl for that.

@since 1.3.0
@see TemplateHelper::getStackUrl()

@param string          $hash        The rokka hash
@param string|StackUri $stack       The stack name or a StackUrl object
@param string|null     $format      The image format of the image (jpg, png, webp, ...)
@param string|null     $seo         If you want to use a seo string in the URL
@param string|null     $seoLanguage Optional language to be used for slugifying (eg. 'de' slugifies 'ö' to 'oe')

@throws \RuntimeException

@return string
Gets the rokka URL for an image hash and stack with optional seo filename in the URL . Doesn t upload it if we don t have a local hash for it . Use getStackUrl for that .