Skip to content

Commit 24b690f

Browse files
MAGETWO-91649: Magento ignore store-level url_key of child category in URL rewrite process for global scope
- Fix static test
1 parent 396e6ce commit 24b690f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/code/Magento/CatalogUrlRewrite/Observer/CategoryUrlPathAutogeneratorObserver.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
use Magento\Framework\Event\ObserverInterface;
1515
use Magento\Store\Model\Store;
1616

17+
/**
18+
* Class for set or update url path.
19+
*/
1720
class CategoryUrlPathAutogeneratorObserver implements ObserverInterface
1821
{
1922
/**
@@ -55,6 +58,8 @@ public function __construct(
5558
}
5659

5760
/**
61+
* Method for update/set url path.
62+
*
5863
* @param \Magento\Framework\Event\Observer $observer
5964
* @return void
6065
* @throws \Magento\Framework\Exception\LocalizedException
@@ -81,6 +86,8 @@ public function execute(\Magento\Framework\Event\Observer $observer)
8186
}
8287

8388
/**
89+
* Update url path for children category.
90+
*
8491
* @param Category $category
8592
* @return void
8693
*/
@@ -121,6 +128,8 @@ protected function isGlobalScope($storeId)
121128
}
122129

123130
/**
131+
* Update url path for category.
132+
*
124133
* @param Category $category
125134
* @return void
126135
*/

0 commit comments

Comments
 (0)