InputfieldWrapper::add()

Add an Inputfield item as a child (also accepts array definition)

Since 3.0.110: If given a string value, it is assumed to be an Inputfield type that you want to add. In that case, it will create the Inputfield and return it instead of $this.

Usage

$inputfield = $inputfieldWrapper->add($item);

Arguments

NameType(s)Description
$itemInputfield array string

Return value

See Also


InputfieldWrapper methods and properties

API reference based on ProcessWire core version 3.0.251