CustomFunction
class CustomFunction extends BaseQualifier
Calls a custom function.
Learn more: Custom functions
Methods
Specifies the wasm file to use for the custom function.
Specifies the URL of the remote custom function.
Creates a new instance from an array of qualifiers.
CustomFunction constructor.
Defines the function as the remote preprocessing custom function.
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.
static CustomFunction
remote(string $source)
Specifies the URL of the remote custom function.
For more information about remote custom functions see the documentation.
static CustomFunction
fromParams(array $qualifiers, bool $isPre = false)
Creates a new instance from an array of qualifiers.
__construct(string $source, string $type = null, bool $preprocess = false)
CustomFunction constructor.
CustomFunction
preprocess(bool $preprocess = true)
Defines the function as the remote preprocessing custom function.
For more information about preprocessing custom functions see the documentation.
Constants
VALUE_CLASS |
|
WASM |
WASM. |
REMOTE |
Remote. |