entry['type'] ? (string) $mixed : $mixed; }; return [ 'field' => $resource['field'], 'value' => $i18nAwareCast($resource->getTypedValue()), 'field-type' => $resource->entry['type'], 'comment' => $resource['comment'], 'default-value' => $i18nAwareCast($resource->getTypedDefaultValue()), 'mkdate' => date('c', $resource['mkdate']), 'chdate' => date('c', $resource['chdate']), ]; } public function getRelationships($user, ContextInterface $context): iterable { return []; } }