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