- parent::__construct($context, $data);
- }
-
- /**
- * Prepare layout
- *
- * @return \Magento\Framework\View\Element\AbstractBlock
- */
- protected function _prepareLayout()
- {
- $newRates = $this->_backendSession->getRates();
- $this->_backendSession->unsetData('rates');
-
- $currencyModel = $this->_dirCurrencyFactory->create();
- $currencies = $currencyModel->getConfigAllowCurrencies();
- $defaultCurrencies = $currencyModel->getConfigBaseCurrencies();
- $oldCurrencies = $this->_prepareRates($currencyModel->getCurrencyRates($defaultCurrencies, $currencies));
-
- foreach ($currencies as $currency) {
- foreach ($oldCurrencies as $key => $value) {
- if (!array_key_exists($currency, $oldCurrencies[$key])) {