25 private $catalogConfig;
30 private $attributeConfig;
37 private $sharingEmailLimit;
49 $emailLimitInConfig = (int)$scopeConfig->getValue(
50 self::XML_PATH_SHARING_EMAIL_LIMIT,
53 $textLimitInConfig = (int)$scopeConfig->getValue(
54 self::XML_PATH_SHARING_TEXT_LIMIT,
59 $this->catalogConfig = $catalogConfig;
60 $this->attributeConfig = $attributeConfig;
70 $catalogAttributes = $this->catalogConfig->getProductAttributes();
71 $wishlistAttributes = $this->attributeConfig->getAttributeNames(
'wishlist_item');
72 return array_merge($catalogAttributes, $wishlistAttributes);
82 return $this->sharingEmailLimit;
92 return $this->_sharignTextLimit;
const XML_PATH_SHARING_TEXT_LIMIT
const XML_PATH_SHARING_EMAIL_LIMIT
__construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Catalog\Model\Config $catalogConfig, \Magento\Catalog\Model\Attribute\Config $attributeConfig)
const SHARING_EMAIL_LIMIT