);
return $result;
} /**
* @return array<string, mixed>
*/
private function getCustomFieldsMapping(Context
$context): array
{ $fieldMapping =
$this->
getCustomFieldTypes($context);
$mapping =
[ 'type' => 'object',
'dynamic' => true,
'properties' =>
[],
];
foreach ($fieldMapping as $name =>
$type) { /** @var array<mixed> $esType */
$esType = CustomFieldUpdater::
getTypeFromCustomFieldType($type);
$mapping['properties'
][$name] =
$esType;
}