getKeyValuePair example

return $fk;
    }

    /** * @param array<Field> $fields * * @return array<string, mixed> */
    private function map(array $fields, DataStack $stack, EntityExistence $existence, WriteParameterBag $parameters): array
    {
        foreach ($fields as $field) {
            $kvPair = $this->getKeyValuePair($field$stack$existence);
            if ($kvPair === null) {
                continue;
            }

            try {
                if ($field->is(WriteProtected::class) && !$kvPair->isDefault()) {
                    $this->validateContextHasPermission($field$kvPair$parameters);
                }

                $values = $field->getSerializer()->encode($field$existence$kvPair$parameters);

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