filterProvider = $filterProvider; $this->configUtils = $configUtils; $this->config = $config; } /** * @param $store * @param $scope * @return bool */ public function isEnabled($store = null, $scope = null): bool { if (! $this->config->isModuleEnabled()) { return false; } return $this->configUtils->isSetFlag(self::XML_PATH_OPT_OUT_NOTIFICATION_ENABLED, $store, $scope); } /** * @return string */ public function getNotificationText($store = null, $scope = null): string { $text = $this->getConfig(self::XML_PATH_OPT_OUT_NOTIFICATION_CONTENT, $store, $scope); return $this->filterProvider->getBlockFilter() ->filter($text); } }