Skip to content

Commit 3c6d9be

Browse files
⏫ Forwardport of #12786 to 2.3-develop branch
Applied pull request patch https://github.com/magento/magento2/pull/12786.patch (created by @aschrammel) based on commit(s): 1. 935dd8d 2. deffe81
1 parent 8e77e2f commit 3c6d9be

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

app/code/Magento/Widget/Model/Widget/Instance.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ class Instance extends \Magento\Framework\Model\AbstractModel
3434

3535
const PRODUCT_LAYOUT_HANDLE = 'catalog_product_view';
3636

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}}';
3843

3944
const PRODUCT_TYPE_LAYOUT_HANDLE = 'catalog_product_view_type_{{TYPE}}';
4045

@@ -188,12 +193,12 @@ protected function _construct()
188193
$this->_specificEntitiesLayoutHandles = [
189194
'anchor_categories' => self::SINGLE_CATEGORY_LAYOUT_HANDLE,
190195
'notanchor_categories' => self::SINGLE_CATEGORY_LAYOUT_HANDLE,
191-
'all_products' => self::SINGLE_PRODUCT_LAYOUT_HANLDE,
196+
'all_products' => self::SINGLE_PRODUCT_LAYOUT_HANDLE,
192197
];
193198
foreach (array_keys($this->_productType->getTypes()) as $typeId) {
194199
$layoutHandle = str_replace('{{TYPE}}', $typeId, self::PRODUCT_TYPE_LAYOUT_HANDLE);
195200
$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;
197202
}
198203
}
199204

0 commit comments

Comments
 (0)