GlideUrl
extends AbstractHelper
in package
Url view helper for generating (signed) glide urls Usage: $this->glideUrl()->getUrl('path to image', ['parameters']);.
Table of Contents
Properties
- $urlBuilder : UrlBuilder
Methods
- __invoke() : GlideUrl
- getUrl() : string
- Gets a signed glide URL.
- setUrlBuilder() : void
- Set the url builder.
Properties
$urlBuilder
protected
UrlBuilder
$urlBuilder
Methods
__invoke()
public
__invoke() : GlideUrl
Return values
GlideUrlgetUrl()
Gets a signed glide URL.
public
getUrl(string $imagePath, array<string|int, mixed> $params) : string
Parameters
- $imagePath : string
- $params : array<string|int, mixed>
Return values
stringsetUrlBuilder()
Set the url builder.
public
setUrlBuilder(UrlBuilder $urlBuilder) : void
Parameters
- $urlBuilder : UrlBuilder