Skip to content

Commit 525ddef

Browse files
committed
MC-15978: Catalog Product Attribute Set Name
1 parent 60bee11 commit 525ddef

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/AttributeSet.php

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,18 @@ public function getOptions()
8080

8181
$collectionData = $collection->getData() ?? [];
8282

83-
array_walk($collectionData, function (&$attribute) {
84-
$attribute['__disableTmpl'] = true;
85-
});
83+
array_walk(
84+
$collectionData,
85+
function (&$attribute) {
86+
$attribute['__disableTmpl'] = true;
87+
}
88+
);
8689

8790
return $collectionData;
8891
}
8992

9093
/**
91-
* {@inheritdoc}
94+
* @inheritdoc
9295
* @since 101.0.0
9396
*/
9497
public function modifyMeta(array $meta)
@@ -122,17 +125,20 @@ public function modifyMeta(array $meta)
122125
}
123126

124127
/**
125-
* {@inheritdoc}
128+
* @inheritdoc
126129
* @since 101.0.0
127130
*/
128131
public function modifyData(array $data)
129132
{
130-
return array_replace_recursive($data, [
131-
$this->locator->getProduct()->getId() => [
132-
self::DATA_SOURCE_DEFAULT => [
133-
'attribute_set_id' => $this->locator->getProduct()->getAttributeSetId()
134-
],
133+
return array_replace_recursive(
134+
$data,
135+
[
136+
$this->locator->getProduct()->getId() => [
137+
self::DATA_SOURCE_DEFAULT => [
138+
'attribute_set_id' => $this->locator->getProduct()->getAttributeSetId()
139+
],
140+
]
135141
]
136-
]);
142+
);
137143
}
138144
}

0 commit comments

Comments
 (0)