public function LegacyNumberFormatter::setCurrencyDisplay in Price 3.x
Same name and namespace in other branches
- 8 src/LegacyNumberFormatter.php \Drupal\price\LegacyNumberFormatter::setCurrencyDisplay()
- 3.0.x src/LegacyNumberFormatter.php \Drupal\price\LegacyNumberFormatter::setCurrencyDisplay()
Sets the currency display.
Allowed values: 'symbol', 'code', 'none'.
Parameters
string $currency_display: The currency display.
Return value
$this
File
- src/
LegacyNumberFormatter.php, line 145
Class
- LegacyNumberFormatter
- Provides a legacy number formatter for the deprecated NumberFormatterFactory.
Namespace
Drupal\priceCode
public function setCurrencyDisplay($currency_display) {
$this->options['currency_display'] = $currency_display;
return $this;
}