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
Name | Type(s) | Description |
---|---|---|
property | string | |
value | mixed | |
getAll (optional) | bool | Get array of all matching Inputfields rather than just first? (default=false) |
Return value
Inputfield
InputfieldWrapper
null
array
InputfieldWrapper methods and properties
API reference based on ProcessWire core version 3.0.244