class UriHelper (View source)

Methods

static string
addOptionsToUriString(string $url, string $options)

Allows you to add stack options to a Rokka URL.

static UriInterface
addOptionsToUri(UriInterface $uri, string $options)

Allows you to add stack options to a Rokka URL.

Details

static string addOptionsToUriString(string $url, string $options)

Allows you to add stack options to a Rokka URL.

Useful eg. if you just want to add "options-dpr-2" to an existing URL. Returns the original URL, if it can't parse it as valid Rokka URL.

Parameters

string $url

The rokka image render URL

string $options

The options you want to add as string

Return Value

string

static UriInterface addOptionsToUri(UriInterface $uri, string $options)

Allows you to add stack options to a Rokka URL.

Useful eg. if you just want to add "options-dpr-2" to an existing URL Returns the original URL, if it can't parse it as valid Rokka URL.

Parameters

UriInterface $uri

The rokka image render URL

string $options

The options you want to add as string

Return Value

UriInterface