Skip to content

Commit 1ad4482

Browse files
committed
fix static
1 parent 9583212 commit 1ad4482

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

app/code/Magento/CatalogUrlRewrite/Plugin/Model/CategorySetSaveRewriteHistory.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,17 @@ public function __construct(RestRequest $request)
3333
*
3434
* @param CategoryUrlRewriteGenerator $subject
3535
* @param Category $category
36-
* @return void
36+
* @param bool $overrideStoreUrls
37+
* @param int|null $rootCategoryId
38+
* @return array
3739
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
3840
*/
39-
public function beforeGenerate(CategoryUrlRewriteGenerator $subject, Category $category)
40-
{
41+
public function beforeGenerate(
42+
CategoryUrlRewriteGenerator $subject,
43+
Category $category,
44+
bool $overrideStoreUrls = false,
45+
?int $rootCategoryId = null
46+
) {
4147
$requestBodyParams = $this->request->getBodyParams();
4248

4349
if ($this->isCustomAttributesExists($requestBodyParams, CategoryUrlRewriteGenerator::ENTITY_TYPE)) {
@@ -47,6 +53,8 @@ public function beforeGenerate(CategoryUrlRewriteGenerator $subject, Category $c
4753
}
4854
}
4955
}
56+
57+
return [$category, $overrideStoreUrls, $rootCategoryId];
5058
}
5159

5260
/**

0 commit comments

Comments
 (0)