54 \
Magento\Store\Model\StoreFactory $storeFactory,
55 \
Magento\Framework\Registry $coreRegistry,
56 \
Magento\Tax\Api\TaxRateRepositoryInterface $taxRateRepository,
59 $this->_coreRegistry = $coreRegistry;
60 $this->_taxRateRepository = $taxRateRepository;
61 $this->_storeFactory = $storeFactory;
62 parent::__construct($context,
$data);
72 if ($this->_titles ===
null) {
78 $rate = $this->_taxRateRepository->get($taxRateId);
79 $titles =
$rate->getTitles();
82 foreach ($titles as
$title) {
83 $this->_titles[
$title->getStoreId()] =
$title->getValue();
86 if (!isset($this->_titles[
$store->getId()])) {
87 $this->_titles[
$store->getId()] =
'';
101 $stores = $this->_storeFactory->create()->getResourceCollection()->setLoadDefault(
false)->load();
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Store\Model\StoreFactory $storeFactory, \Magento\Framework\Registry $coreRegistry, \Magento\Tax\Api\TaxRateRepositoryInterface $taxRateRepository, array $data=[])
getData($key='', $index=null)
const CURRENT_TAX_RATE_ID
setData($key, $value=null)