Skip to content

Commit cec2a6f

Browse files
author
Sergii Kovalenko
committed
MAGETWO-55024: Add ProductWebsiteLink as Extension attributes to ProductInterface entity
1 parent 7dc6bfb commit cec2a6f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

app/code/Magento/Catalog/Model/Product/Website/ReadHandler.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ public function __construct(
2626

2727
/**
2828
* @param ProductInterface $product
29-
* @param array $additionalData
29+
* @param array $arguments
30+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
3031
* @return ProductInterface
3132
*/
32-
public function execute($product, $additionalData = [])
33+
public function execute($product, $arguments = [])
3334
{
3435
if ($product->getExtensionAttributes()->getWebsiteIds() !== null) {
3536
return $product;

app/code/Magento/Catalog/Model/Product/Website/SaveHandler.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ public function __construct(
3838
/**
3939
* Get website ids from extension attributes and persist them
4040
* @param ProductInterface $product
41-
* @param array $additionalData
41+
* @param array $arguments
42+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
4243
* @return ProductInterface
4344
*/
44-
public function execute($product, $additionalData = [])
45+
public function execute($product, $arguments = [])
4546
{
4647
if ($this->storeManager->isSingleStoreMode()) {
4748
$defaultWebsiteId = $this->storeManager->getDefaultStoreView()->getWebsiteId();

0 commit comments

Comments
 (0)