22 private $dataObjectProcessor;
27 private $attributeTypeResolver;
37 $this->dataObjectProcessor = $dataObjectProcessor;
38 $this->attributeTypeResolver = $typeResolver;
52 foreach ($customAttributes as $customAttribute) {
53 $result[] = $this->convertCustomAttribute($customAttribute, $dataObjectType);
65 private function convertCustomAttribute(
AttributeInterface $customAttribute, $dataObjectType)
71 $type = $this->attributeTypeResolver->resolveObjectType(
79 foreach (
$value as $singleValue) {
80 if (is_object($singleValue)) {
81 $type = $this->attributeTypeResolver->resolveObjectType(
86 $singleValue = $this->dataObjectProcessor->buildOutputDataArray($singleValue,
$type);
89 $valueResult[] = $singleValue;
buildOutputDataArray(CustomAttributesDataInterface $objectWithCustomAttributes, $dataObjectType)
elseif(isset( $params[ 'redirect_parent']))
__construct(DataObjectProcessor $dataObjectProcessor, AttributeTypeResolverInterface $typeResolver)