76 if (
$path ===
false) {
121 $storeId = $this->storeManager->getStore()->getId();
123 if (!isset($this->categoryUrlSuffix[
$storeId])) {
124 $this->categoryUrlSuffix[
$storeId] = $this->scopeConfig->getValue(
125 self::XML_PATH_CATEGORY_URL_SUFFIX,
130 return $this->categoryUrlSuffix[
$storeId];
141 return 'catalog/category/view/id/' .
$category->getId();
153 return $category->formatUrlKey($urlKey ===
'' || $urlKey ===
null ?
$category->getName() : $urlKey);
isNeedToGenerateUrlPathForParent($category)
const MINIMAL_CATEGORY_LEVEL_FOR_PROCESSING
__construct(\Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, CategoryRepositoryInterface $categoryRepository)
getCategoryUrlSuffix($storeId=null)
getCanonicalUrlPath($category)
getUrlPathWithSuffix($category, $storeId=null)
const XML_PATH_CATEGORY_URL_SUFFIX