9
9
use Magento \Catalog \Helper \Product as CatalogProduct ;
10
10
use Magento \Catalog \Model \Product ;
11
11
use Magento \Catalog \Model \Layer \Resolver ;
12
- use Magento \Catalog \Model \Layer \Category as CategoryLayer ;
13
12
use Magento \ConfigurableProduct \Helper \Data ;
14
13
use Magento \ConfigurableProduct \Model \ConfigurableAttributeData ;
15
14
use Magento \Customer \Helper \Session \CurrentCustomer ;
@@ -154,7 +153,7 @@ public function getJsonConfig()
154
153
$ this ->unsetData ('allow_products ' );
155
154
return parent ::getJsonConfig ();
156
155
}
157
-
156
+
158
157
/**
159
158
* Composes configuration for js price format
160
159
*
@@ -242,9 +241,12 @@ private function getLayeredAttributesIfExists(Product $configurableProduct, arra
242
241
243
242
$ layeredAttributes = [];
244
243
245
- $ configurableAttributes = array_map (function ($ attribute ) {
246
- return $ attribute ->getAttributeCode ();
247
- }, $ configurableAttributes );
244
+ $ configurableAttributes = array_map (
245
+ function ($ attribute ) {
246
+ return $ attribute ->getAttributeCode ();
247
+ },
248
+ $ configurableAttributes
249
+ );
248
250
249
251
$ commonAttributeCodes = array_intersect (
250
252
$ configurableAttributes ,
@@ -257,16 +259,4 @@ private function getLayeredAttributesIfExists(Product $configurableProduct, arra
257
259
258
260
return $ layeredAttributes ;
259
261
}
260
-
261
- /**
262
- * @inheritdoc
263
- */
264
- public function getCacheKeyInfo ()
265
- {
266
- $ cacheKeyInfo = parent ::getCacheKeyInfo ();
267
- /** @var CategoryLayer $catalogLayer */
268
- $ catalogLayer = $ this ->layerResolver ->get ();
269
- $ cacheKeyInfo [] = $ catalogLayer ->getStateKey ();
270
- return $ cacheKeyInfo ;
271
- }
272
262
}
0 commit comments