Skip to content

Commit

Permalink
revert hotfix: configuration is helper now
Browse files Browse the repository at this point in the history
  • Loading branch information
Leone committed Oct 11, 2023
1 parent 3fab6b0 commit 35cac37
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Helper/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace MageSuite\SeoLinkMasking\Helper;

class Configuration extends \Magento\Framework\App\Helper\AbstractHelper
class Configuration
{
public const LINK_MASKING_PARAMETER_REGISTRY_KEY = 'link_masking_parameters';

Expand All @@ -21,6 +21,13 @@ class Configuration extends \Magento\Framework\App\Helper\AbstractHelper

public const XML_PATH_SHOW_SWATCH_TOOLTIP = 'catalog/frontend/show_swatch_tooltip';

protected \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig;

public function __construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfigInterface)
{
$this->scopeConfig = $scopeConfigInterface;
}

public function isLinkMaskingEnabled($storeId = null): bool
{
return $this->scopeConfig->isSetFlag(self::XML_PATH_SEO_LINK_MASKING_IS_ENABLED, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $storeId);
Expand Down

0 comments on commit 35cac37

Please sign in to comment.