Skip to content

Commit 4025119

Browse files
committed
AC-4958: Multiselect/select attribute options can be saved when Swatches modules disabled
1 parent a99d46e commit 4025119

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎app/code/Magento/Catalog/ViewModel/Attribute/ProductAttributeHelper.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,24 @@
1212

1313
class ProductAttributeHelper implements ArgumentInterface
1414
{
15+
/**
16+
* @var CatalogHelper
17+
*/
1518
private CatalogHelper $catalogHelper;
1619

20+
/**
21+
* @param CatalogHelper $catalogHelper
22+
*/
1723
public function __construct(CatalogHelper $catalogHelper)
1824
{
1925
$this->catalogHelper = $catalogHelper;
2026
}
2127

28+
/**
29+
* Retrieve the Catalog Helper instance
30+
*
31+
* @return CatalogHelper
32+
*/
2233
public function getCatalogHelper(): CatalogHelper
2334
{
2435
return $this->catalogHelper;

0 commit comments

Comments
 (0)