Skip to content

Commit

Permalink
ENGCOM-8157: Fix #29879 Breadcrump Undefined class constant 'XML_PATH…
Browse files Browse the repository at this point in the history
…_CATEGORY_URL_SUFFIX' #29925

 - Merge Pull Request #29925 from toxix/magento2:fix-29879-breadcrump-static-reference-error
 - Merged commits:
   1. 2d1d097
  • Loading branch information
magento-engcom-team committed Sep 10, 2020
2 parents 1dc62a7 + 2d1d097 commit e7f6599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Catalog/ViewModel/Product/Breadcrumbs.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function __construct(
public function getCategoryUrlSuffix()
{
return $this->scopeConfig->getValue(
static::XML_PATH_CATEGORY_URL_SUFFIX,
self::XML_PATH_CATEGORY_URL_SUFFIX,
ScopeInterface::SCOPE_STORE
);
}
Expand All @@ -84,7 +84,7 @@ public function getCategoryUrlSuffix()
public function isCategoryUsedInProductUrl(): bool
{
return $this->scopeConfig->isSetFlag(
static::XML_PATH_PRODUCT_USE_CATEGORIES,
self::XML_PATH_PRODUCT_USE_CATEGORIES,
ScopeInterface::SCOPE_STORE
);
}
Expand Down

0 comments on commit e7f6599

Please sign in to comment.