Skip to content

Commit

Permalink
Add comment to plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhughes1984 committed Sep 6, 2018
1 parent 5b46aea commit 43aaa8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Plugin/RemoveCategoriesFromProductUrlRewriteGeneration.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function beforeGenerateForSpecificStoreView(
$rootCategoryId = null
): array {
if (!$this->config->generateCategoryUrlsForProductRewrites($storeId)) {
// Unset product categories to stop needless category path rewrites being created
$productCategories = [];
}
return [$storeId, $productCategories, $product, $rootCategoryId];
Expand Down

0 comments on commit 43aaa8f

Please # to comment.