- /**
- * 2016-07-04
- * «How to programmatically get the base currency's ISO code for a store?» https://mage2.pro/t/1841
- * @param null|string|int|ScopeA|Store $store [optional]
- * @return Currency
- */
- function df_currency_base($store = null) {
- /** @var string $code */
- $code = df_cfg(Currency::XML_PATH_CURRENCY_BASE, $store);
- df_assert_string_not_empty($code);
- return df_currency($code);
- }