Return the list of Fieldgroups using this field.
Usage
// basic usage
$items = $field->getFieldgroups();
// usage with all arguments
$items = $field->getFieldgroups(bool $getCount = false);
Arguments
Name | Type(s) | Description |
---|---|---|
getCount (optional) | bool | Get count rather than FieldgroupsArray? (default=false) 3.0.182+ |
Return value
FieldgroupsArray
int
WireArray of Fieldgroup objects or count if requested
API reference based on ProcessWire core version 3.0.236