public function LegacyNumberFormatter::setCurrencyDisplay in Commerce Core 8.2
Sets the currency display.
Allowed values: 'symbol', 'code', 'none'.
Parameters
string $currency_display: The currency display.
Return value
$this
File
- modules/
price/ src/ LegacyNumberFormatter.php, line 145
Class
- LegacyNumberFormatter
- Provides a legacy number formatter for the deprecated NumberFormatterFactory.
Namespace
Drupal\commerce_priceCode
public function setCurrencyDisplay($currency_display) {
$this->options['currency_display'] = $currency_display;
return $this;
}