You are here

service price.currency_formatter in Price 8

Same name and namespace in other branches
  1. 3.x price.services.yml \price.currency_formatter
  2. 2.0.x price.services.yml \price.currency_formatter
  3. 2.x price.services.yml \price.currency_formatter
  4. 3.0.x price.services.yml \price.currency_formatter

Class

Drupal\price\CurrencyFormatter
2 string references to price.currency_formatter
PriceDefaultFormatter::create in src/Plugin/Field/FieldFormatter/PriceDefaultFormatter.php
Creates an instance of the plugin.
PriceTwigExtension::formatPrice in src/TwigExtension/PriceTwigExtension.php
Formats a price object/array.

File

./price.services.yml
price.services.yml

View source
  1. class: Drupal\price\CurrencyFormatter
  2. arguments:
  3. - '@price.number_format_repository'
  4. - '@price.currency_repository'
  5. - '@price.current_locale'