Does this Inputfield have the requested property or attribute?
Example
if($item->has('some_property')) {
// the item has some_property
}
Usage
$bool = $inputfield->has(string $key);
Arguments
Name | Type(s) | Description |
---|---|---|
key | string | Requested property or attribute. |
Return value
bool
True if it has it, false if it doesn't
Inputfield methods and properties
API reference based on ProcessWire core version 3.0.236