Make an item and populate with given data
Available since version 3.0.146.
Usage
// basic usage
$saveable = $fields->makeItem();
// usage with all arguments
$saveable = $fields->makeItem(array $a = []);
Arguments
Name | Type(s) | Description |
---|---|---|
a (optional) | array | Associative array of data to populate |
Return value
Saveable
Wire
Exceptions
Method can throw exceptions on error:
WireException
$fields methods and properties
API reference based on ProcessWire core version 3.0.236