File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 5
5
* Copyright © 2015 Magento. All rights reserved.
6
6
* See COPYING.txt for license details.
7
7
*/
8
- namespace Magento \Catalog \Model \Plugin \ Api ;
8
+ namespace Magento \Catalog \Model \Plugin ;
9
9
10
10
use Magento \Catalog \Model \Product \Attribute \Repository ;
11
11
@@ -19,13 +19,13 @@ class FilterCustomAttribute
19
19
/**
20
20
* @param array $blackList
21
21
*/
22
- public function __construct ($ blackList = [' quantity_and_stock_status ' ])
22
+ public function __construct (array $ blackList = [])
23
23
{
24
24
$ this ->blackList = $ blackList ;
25
25
}
26
26
27
27
/**
28
- * Delete custom attribute from api response
28
+ * Delete custom attribute
29
29
*
30
30
* @param Repository $repository
31
31
* @param array $attributes
Original file line number Diff line number Diff line change 47
47
<plugin name =" catalogLog" type =" Magento\Catalog\Model\Plugin\Log" />
48
48
</type >
49
49
<type name =" Magento\Catalog\Model\Product\Attribute\Repository" >
50
- <plugin name =" filterDataForApi" type =" Magento\Catalog\Model\Plugin\Api\FilterCustomAttribute" />
50
+ <plugin name =" filterCustomAttribute" type =" Magento\Catalog\Model\Plugin\FilterCustomAttribute" />
51
+ </type >
52
+ <type name =" Magento\Catalog\Model\Plugin\FilterCustomAttribute" >
53
+ <arguments >
54
+ <argument name =" blackList" xsi : type =" array" >
55
+ <item name =" quantity_and_stock_status" xsi : type =" string" >quantity_and_stock_status</item >
56
+ </argument >
57
+ </arguments >
51
58
</type >
52
59
<type name =" Magento\Indexer\Model\Indexer\State" >
53
60
<plugin name =" setStatusForIndexer" type =" Magento\Catalog\Model\Indexer\Category\Product\Plugin\IndexerState" />
You can’t perform that action at this time.
0 commit comments