You are here

public function LegacyNumberFormatter::setCurrencyDisplay in Price 3.0.x

Same name and namespace in other branches
  1. 8 src/LegacyNumberFormatter.php \Drupal\price\LegacyNumberFormatter::setCurrencyDisplay()
  2. 3.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\price

Code

public function setCurrencyDisplay($currency_display) {
  $this->options['currency_display'] = $currency_display;
  return $this;
}