Get a field that is part of this fieldgroup
Same as Fieldgroup::get()
except that it only checks fields, not other properties of a fieldgroup.
Meaning, this is the preferred way to retrieve a Field from a Fieldgroup.
Usage
// basic usage
$field = $fieldgroup->getField($key);
// usage with all arguments
$field = $fieldgroup->getField($key, $useFieldgroupContext = false);
Arguments
Name | Type(s) | Description |
---|---|---|
key | string, int, Field | Field object, name or id. |
useFieldgroupContext (optional) | bool, string | Optionally specify one of the following (default=false):
|
Return value
Fieldgroup methods and properties
API reference based on ProcessWire core version 3.0.236