We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6aaa094 + 0d35802 commit 6eb493aCopy full SHA for 6eb493a
src/Services/StructuredDataService.php
@@ -95,6 +95,10 @@ public function transformSchema(array $schema): array
95
$result[$key] = $field['values'];
96
} elseif ($field['type'] === 'object' && isset($field['value'])) {
97
$result[$key] = $this->transformSchema($field['value']);
98
+ } elseif ($field['type'] === 'object_array' && isset($field['values'])) {
99
+ foreach ($field['values'] as $value) {
100
+ $result[$key][] = $this->transformSchema($value);
101
+ }
102
} elseif ($field['type'] === 'numeric' && isset($field['value'])) {
103
$result[$key] = (float) $field['value'];
104
} else {
0 commit comments