WireSaveableItems::makeItem()

Make an item and populate with given data

Available since version 3.0.146.

Usage

// basic usage
$saveable = $wireSaveableItems->makeItem();

// usage with all arguments
$saveable = $wireSaveableItems->makeItem(array $a = []);

Arguments

NameType(s)Description
$a (optional)array

Associative array of data to populate

Return value

Saveable WireData Wire

Exceptions

Method can throw exceptions on error:

  • WireException


WireSaveableItems methods and properties

API reference based on ProcessWire core version 3.0.251