File tree 1 file changed +8
-3
lines changed
app/code/Magento/Widget/Model/Widget
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,12 @@ class Instance extends \Magento\Framework\Model\AbstractModel
34
34
35
35
const PRODUCT_LAYOUT_HANDLE = 'catalog_product_view ' ;
36
36
37
- const SINGLE_PRODUCT_LAYOUT_HANLDE = 'catalog_product_view_id_{{ID}} ' ;
37
+ /**
38
+ * @deprecated see self::SINGLE_PRODUCT_LAYOUT_HANDLE
39
+ */
40
+ const SINGLE_PRODUCT_LAYOUT_HANLDE = self ::SINGLE_PRODUCT_LAYOUT_HANDLE ;
41
+
42
+ const SINGLE_PRODUCT_LAYOUT_HANDLE = 'catalog_product_view_id_{{ID}} ' ;
38
43
39
44
const PRODUCT_TYPE_LAYOUT_HANDLE = 'catalog_product_view_type_{{TYPE}} ' ;
40
45
@@ -188,12 +193,12 @@ protected function _construct()
188
193
$ this ->_specificEntitiesLayoutHandles = [
189
194
'anchor_categories ' => self ::SINGLE_CATEGORY_LAYOUT_HANDLE ,
190
195
'notanchor_categories ' => self ::SINGLE_CATEGORY_LAYOUT_HANDLE ,
191
- 'all_products ' => self ::SINGLE_PRODUCT_LAYOUT_HANLDE ,
196
+ 'all_products ' => self ::SINGLE_PRODUCT_LAYOUT_HANDLE ,
192
197
];
193
198
foreach (array_keys ($ this ->_productType ->getTypes ()) as $ typeId ) {
194
199
$ layoutHandle = str_replace ('{{TYPE}} ' , $ typeId , self ::PRODUCT_TYPE_LAYOUT_HANDLE );
195
200
$ this ->_layoutHandles [$ typeId . '_products ' ] = $ layoutHandle ;
196
- $ this ->_specificEntitiesLayoutHandles [$ typeId . '_products ' ] = self ::SINGLE_PRODUCT_LAYOUT_HANLDE ;
201
+ $ this ->_specificEntitiesLayoutHandles [$ typeId . '_products ' ] = self ::SINGLE_PRODUCT_LAYOUT_HANDLE ;
197
202
}
198
203
}
199
204
You can’t perform that action at this time.
0 commit comments