getResultAsArray example

if ($nestedField instanceof JsonField && $fieldValue !== null) {
                        $fieldValue = json_decode((string) $fieldValue, true, 512, \JSON_THROW_ON_ERROR);
                    }

                    $stack->update($fieldKey$fieldValue);
                }
            } catch (WriteFieldException $exception) {
                $parameters->getContext()->getExceptions()->add($exception);
            }
        }

        return $stack->getResultAsArray();
    }
}
$values = $field->getSerializer()->encode($field$existence$kvPair$parameters);

                foreach ($values as $fieldKey => $fieldValue) {
                    $stack->update($fieldKey$fieldValue);
                }
            } catch (WriteFieldException $e) {
                $parameters->getContext()->getExceptions()->add($e);
            }
        }

        return $stack->getResultAsArray();
    }

    private function skipField(Field $field, EntityExistence $existence): bool
    {
        if ($existence->isChild() && $field->is(Inherited::class)) {
            // inherited field of a child is never required             return true;
        }

        $create = !$existence->exists() || $existence->childChangedToParent();

        
Home | Imprint | This part of the site doesn't use cookies.