InputfieldWrapper::getByProperty()

Get Inputfield by some other non-attribute property or setting

Available since version 3.0.239.

Usage

// basic usage
$inputfield = $inputfieldWrapper->getByProperty(string $property, mixed $value);

// usage with all arguments
$inputfield = $inputfieldWrapper->getByProperty(string $property, mixed $value, bool $getAll = false);

Arguments

NameType(s)Description
$propertystring
$valuemixed
$getAll (optional)bool

Get array of all matching Inputfields rather than just first? Default:false

Return value


InputfieldWrapper methods and properties

API reference based on ProcessWire core version 3.0.251