trait CustomFunctionQualifierTrait

Trait CustomFunctionQualifierTrait

Methods

customFunction(string $source, string $type = null, bool $preprocess = false)

Injects a custom function into the image transformation pipeline.

Details

static CustomFunction customFunction(string $source, string $type = null, bool $preprocess = false)

Injects a custom function into the image transformation pipeline.

Parameters

Name Type Description
$source string Source of this custom function
$type string The type of custom function (CustomFunction::REMOTE or CustomFunction::WASM).
$preprocess bool Preprocess custom function. Only remote functions are supported for preprocess

Return Value

CustomFunction

See also

CustomFunction::REMOTE
CustomFunction::WASM