trait CustomFunctionTrait

Trait CustomFunctionTrait

Methods

wasm(string $source)

Specifies the wasm file to use for the custom function.

remote(string $source)

Specifies the URL of the remote custom function.

fromParams(array $qualifiers, bool $isPre = false)

Creates a new instance from an array of qualifiers.

Details

static CustomFunction wasm(string $source)

Specifies the wasm file to use for the custom function.

For more information about WebAssembly functions see the documentation.

Parameters

Name Type Description
$source string The public ID of the wasm file.

Return Value

CustomFunction

See also

CustomFunction
https://cloudinary.com/documentation/custom_functions#webassembly_functions

static CustomFunction remote(string $source)

Specifies the URL of the remote custom function.

For more information about remote custom functions see the documentation.

Parameters

Name Type Description
$source string The URL of the remote function.

Return Value

CustomFunction

See also

CustomFunction
https://cloudinary.com/documentation/custom_functions#remote_functions

static CustomFunction fromParams(array $qualifiers, bool $isPre = false)

Creates a new instance from an array of qualifiers.

Parameters

Name Type Description
$qualifiers array The qualifiers.
$isPre bool Indicates whether the function is a pre-processing function. Default: false.

Return Value

CustomFunction

See also

CustomFunction