public function LegacyNumberFormatter::__construct in Commerce Core 8.2
Constructs a new LegacyNumberFormatter object.
Parameters
\CommerceGuys\Intl\Formatter\CurrencyFormatterInterface $currency_formatter: The currency formatter.
File
- modules/
price/ src/ LegacyNumberFormatter.php, line 35
Class
- LegacyNumberFormatter
- Provides a legacy number formatter for the deprecated NumberFormatterFactory.
Namespace
Drupal\commerce_priceCode
public function __construct(CurrencyFormatterInterface $currency_formatter) {
$this->currencyFormatter = $currency_formatter;
}