Field::getFieldgroups() method

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

NameType(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


$field methods and properties

API reference based on ProcessWire core version 3.0.251