public function NumberFormatterFactory::createInstance in Commerce Core 8.2
Creates an instance of the number formatter for the current locale.
Return value
\Drupal\commerce_price\LegacyNumberFormatter The created number formatter.
Overrides NumberFormatterFactoryInterface::createInstance
File
- modules/
price/ src/ NumberFormatterFactory.php, line 36
Class
- NumberFormatterFactory
- Defines the NumberFormatter factory.
Namespace
Drupal\commerce_priceCode
public function createInstance() {
return new LegacyNumberFormatter($this->currencyFormatter);
}