Inputfield::get()
Get a property or attribute from the Inputfield
This can also be accessed directly, i.e.
$value = $inputfield->property;.For getting attribute values, this will work, but it is preferable to use the
Inputfield::attr()method.For getting non-attribute values that have potential name conflicts with attributes (or just as a reliable alternative), use the
Inputfieldmethod instead, which excludes the possibility of overlap with attributes.::getSetting()
Usage
$mixed = $inputfield->get(string $key);Arguments
| Name | Type(s) | Description |
|---|---|---|
$key | string | Name of property or attribute to retrieve. |
Return value
mixed nullValue of property or attribute, or NULL if not found.
Inputfield methods and properties
API reference based on ProcessWire core version 3.0.252