25 private $storeManager;
42 \
Magento\Framework\
Json\EncoderInterface $jsonEncoder,
44 Json $serializer =
null 46 parent::__construct($context,
$data);
47 $this->storeManager = $context->getStoreManager();
61 return (
int)$this->_storeManager->getStore()->getWebsiteId();
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, array $data=[], Json $serializer=null)
encodeConfiguration(array $configuration)