@@ -200,6 +200,7 @@ public function __construct(
200
200
201
201
/**
202
202
* Action after data import.
203
+ *
203
204
* Save new url rewrites and remove old if exist.
204
205
*
205
206
* @param Observer $observer
@@ -268,6 +269,8 @@ protected function _populateForUrlGeneration($rowData)
268
269
}
269
270
270
271
/**
272
+ * Add store id to product data.
273
+ *
271
274
* @param \Magento\Catalog\Model\Product $product
272
275
* @param array $rowData
273
276
* @return void
@@ -437,6 +440,8 @@ protected function currentUrlRewritesRegenerate()
437
440
}
438
441
439
442
/**
443
+ * Generate url-rewrite for outogenerated url-rewirte.
444
+ *
440
445
* @param UrlRewrite $url
441
446
* @param Category $category
442
447
* @return array
@@ -471,6 +476,8 @@ protected function generateForAutogenerated($url, $category)
471
476
}
472
477
473
478
/**
479
+ * Generate url-rewrite for custom url-rewirte.
480
+ *
474
481
* @param UrlRewrite $url
475
482
* @param Category $category
476
483
* @return array
@@ -504,6 +511,8 @@ protected function generateForCustom($url, $category)
504
511
}
505
512
506
513
/**
514
+ * Retrieve category from url metadata.
515
+ *
507
516
* @param UrlRewrite $url
508
517
* @return Category|null|bool
509
518
*/
@@ -518,6 +527,8 @@ protected function retrieveCategoryFromMetadata($url)
518
527
}
519
528
520
529
/**
530
+ * Check, category suited for url-rewrite generation.
531
+ *
521
532
* @param \Magento\Catalog\Model\Category $category
522
533
* @param int $storeId
523
534
* @return bool
0 commit comments