$attributeName =
preg_replace( '#^' .
preg_quote($field->
getPropertyName(), '#'
) . '\.("([^"]*)"|([^.]*)).*#',
'$2$3',
$accessor );
$attributeField =
$this->customFieldService->
getCustomField($attributeName) ??
new JsonField($attributeName,
$attributeName);
$field->
setPropertyMapping([$attributeField]);
return parent::
buildAccessor($root,
$field,
$context,
$accessor);
}}