MultiRecordField::setFieldsFunction
Set the function to call on the $record for determining what fields to show.
If string, then set the method to call on the record to get fields. If closure, then call the method for the fields with $record as the first parameter.
Signature
public function setFieldsFunction(string|function
$functionOrFunctionName,
[boolean
$fallback = false] )
Parameters
$functionOrFunctionName
— object
$fallback
— boolean- If true, fallback to using 'getMultiRecordFields' and then fallback to 'getCMSFields'
Returns
- MultiRecordField