File tree Expand file tree Collapse file tree 1 file changed +17
-11
lines changed
app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -80,15 +80,18 @@ public function getOptions()
80
80
81
81
$ collectionData = $ collection ->getData () ?? [];
82
82
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
+ );
86
89
87
90
return $ collectionData ;
88
91
}
89
92
90
93
/**
91
- * { @inheritdoc}
94
+ * @inheritdoc
92
95
* @since 101.0.0
93
96
*/
94
97
public function modifyMeta (array $ meta )
@@ -122,17 +125,20 @@ public function modifyMeta(array $meta)
122
125
}
123
126
124
127
/**
125
- * { @inheritdoc}
128
+ * @inheritdoc
126
129
* @since 101.0.0
127
130
*/
128
131
public function modifyData (array $ data )
129
132
{
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
+ ]
135
141
]
136
- ] );
142
+ );
137
143
}
138
144
}
You can’t perform that action at this time.
0 commit comments