codemirror insert
This commit is contained in:
@@ -16,8 +16,11 @@ class InputFormatter
|
||||
|
||||
public function fill(string $schemaName, RecordData $input): RecordData
|
||||
{
|
||||
|
||||
$schema = $this->channelService->getSchema($schemaName)->get();
|
||||
|
||||
$data = $schema->fields->reduce(fn(array $carry, FieldInterface $field) => $field->format($input->toArray(), $carry), []);
|
||||
|
||||
return new RecordData($data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user