/** * Get currency display options * * @param string $baseCode * @return array */ protected function getCurrencyOptions($baseCode) { $currencyOptions = []; if ($baseCode) { $customCurrencySymbol = $this->symbolFactory->create()->getCurrencySymbol($baseCode); if ($customCurrencySymbol) { $currencyOptions[Currency::CURRENCY_OPTION_SYMBOL] = $customCurrencySymbol; $currencyOptions[Currency::CURRENCY_OPTION_DISPLAY] = \Magento\Framework\Currency::USE_SYMBOL; } } return $currencyOptions; }
/** * Get currency display options * * @param string $baseCode * @return array */ public function getCurrencyOptions($baseCode) { $currencyOptions = []; $currencySymbol = $this->_symbolFactory->create(); if ($currencySymbol) { $customCurrencySymbol = $currencySymbol->getCurrencySymbol($baseCode); if ($customCurrencySymbol) { $currencyOptions['symbol'] = $customCurrencySymbol; $currencyOptions['display'] = \Magento\Framework\Currency::USE_SYMBOL; } } return $currencyOptions; }
/** * Returns Custom currency symbol properties * * @return array */ public function getCurrencySymbolsData() { if (!$this->_symbolsData) { $this->_symbolsData = $this->_symbolSystemFactory->create()->getCurrencySymbolsData(); } return $this->_symbolsData; }