public function getCustomFieldsValues(string ...
$fields): array
{ if (!
$this->
hasCustomFieldSupport(__METHOD__
)) { return [];
} $values =
[];
foreach ($this->elements
as $element) { if (empty($fields)) { // @phpstan-ignore-next-line not possible to typehint or docblock the trait
$values[$element->
getUniqueIdentifier()] =
$element->
getCustomFields();
continue;
}