class TwicPics implements ImageServiceInterface (View source)

Traits

Properties

protected $cropParamsKeys from  ImageServiceDefaults
protected $paramsProcessor

Methods

string
getSocialFallbackUrl()

No description

string
getTransparentFallbackUrl()

No description

__construct(TwicPicsParamsProcessor $paramsProcessor)

No description

string
getUrl(string $id, array $params = [])

No description

string
getUrlWithCrop(string $id, array $cropParams, array $params = [])

No description

string
getUrlWithFocalCrop(string $id, array $cropParams, int $width, int $height, array $params = [])

No description

string
getLQIPUrl(string $id, array $params = [])

No description

string
getSocialUrl(string $id, array $params = [])

No description

string
getCmsUrl(string $id, array $params = [])

No description

string
getRawUrl(string $id)

No description

array|null
getDimensions(string $id)

No description

string
createUrl(string $id, array $params = [])

No description

string
getUrlWithDefaultParams(string $id, array $params = [], array $defaultParams = [])

No description

array
getCrop(array $cropParams)

No description

array
getFocalPointCrop(array $cropParams, int $width, int $height)

No description

Details

string getSocialFallbackUrl()

No description

Return Value

string

string getTransparentFallbackUrl()

No description

Return Value

string

__construct(TwicPicsParamsProcessor $paramsProcessor)

No description

Parameters

TwicPicsParamsProcessor $paramsProcessor

string getUrl(string $id, array $params = [])

No description

Parameters

string $id
array $params

Return Value

string

string getUrlWithCrop(string $id, array $cropParams, array $params = [])

No description

Parameters

string $id
array $cropParams
array $params

Return Value

string

string getUrlWithFocalCrop(string $id, array $cropParams, int $width, int $height, array $params = [])

No description

Parameters

string $id
array $cropParams
int $width
int $height
array $params

Return Value

string

string getLQIPUrl(string $id, array $params = [])

No description

Parameters

string $id
array $params

Return Value

string

string getSocialUrl(string $id, array $params = [])

No description

Parameters

string $id
array $params

Return Value

string

string getCmsUrl(string $id, array $params = [])

No description

Parameters

string $id
array $params

Return Value

string

string getRawUrl(string $id)

No description

Parameters

string $id

Return Value

string

array|null getDimensions(string $id)

No description

Parameters

string $id

Return Value

array|null

protected string createUrl(string $id, array $params = [])

No description

Parameters

string $id
array $params

Return Value

string

protected string getUrlWithDefaultParams(string $id, array $params = [], array $defaultParams = [])

No description

Parameters

string $id
array $params
array $defaultParams

Return Value

string

protected array getCrop(array $cropParams)

No description

Parameters

array $cropParams

Return Value

array

protected array getFocalPointCrop(array $cropParams, int $width, int $height)

No description

Parameters

array $cropParams
int $width
int $height

Return Value

array