You are here

public function LegacyNumberFormatter::__construct in Price 3.x

Same name and namespace in other branches
  1. 8 src/LegacyNumberFormatter.php \Drupal\price\LegacyNumberFormatter::__construct()
  2. 3.0.x src/LegacyNumberFormatter.php \Drupal\price\LegacyNumberFormatter::__construct()

Constructs a new LegacyNumberFormatter object.

Parameters

\CommerceGuys\Intl\Formatter\CurrencyFormatterInterface $currency_formatter: The currency formatter.

File

src/LegacyNumberFormatter.php, line 35

Class

LegacyNumberFormatter
Provides a legacy number formatter for the deprecated NumberFormatterFactory.

Namespace

Drupal\price

Code

public function __construct(CurrencyFormatterInterface $currency_formatter) {
  $this->currencyFormatter = $currency_formatter;
}