public function __construct() { parent::__construct(); $this->currencySymbol = StringHelper::trim($this->numberFormatter->getSymbol(NumberFormatter::CURRENCY_SYMBOL)); if ($this->currencySymbol === FALSE) { throw new IllegalStateException(t('Cannot detect OS currency symbol')); } }