Set a value
Available since version 3.0.141. You can also use __set() or set directly for compatibility with all versions
Usage
// basic usage
$wireInputData->set(string $key, $value);
// usage with all arguments
$wireInputData->set(string $key, $value, $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
key | string | |
value | string, int, float, array, null | |
options (optional) | array, int, string | Options not currently used, but available for descending classes or future use |
Return value
$this
Object instance it was called from (method supports fluent interface).
WireInputData methods and properties
API reference based on ProcessWire core version 3.0.236