Create a new WireData instance and optionally add given associative array of data to it

Please note this method is and thus not intended to be called directly.

Available since version 3.0.126.

Example

$data = WireData([ 'hello' => 'world', 'foo' => 'bar' ]); 

Internal usage

// basic internal usage
$wireData = WireData();

// internal usage with all arguments
$wireData = WireData($data = array);

Arguments

NameType(s)Description
$data (optional)array \Traversable

Can be an associative array or Traversable object of data to set, or omit if not needed

Return value


Functions methods and properties

API reference based on ProcessWire core version 3.0.251